misc
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
// MQTTPing publishes the current timestamp to the configured MQTT topic
|
||||
func MQTTPing(c *gin.Context) {
|
||||
func (h *Handler) MQTTPing(c *gin.Context) {
|
||||
ts := time.Now().Format(time.RFC3339)
|
||||
topic := os.Getenv("MQTT_TOPIC")
|
||||
if topic == "" {
|
||||
|
||||
Reference in New Issue
Block a user