This commit is contained in:
2026-01-04 13:54:00 +01:00
parent b0fd606250
commit b5de38e1f7
5 changed files with 14 additions and 3 deletions
+1 -1
View File
@@ -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 == "" {