This commit is contained in:
kristjank committed 2026-01-04 13:54:00 +01:00
1 parent b0fd606250
commit b5de38e1f7
5 files changed
+14 -3

No files matched your search

+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 == "" {