From 6a650bfdfc2b21fc5bf89b92529c81921dcf62b5 Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Fri, 27 Dec 2024 10:18:13 -0800 Subject: [PATCH] fix invalid json in spectrum message --- RX_FSK/src/conn-mqtt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RX_FSK/src/conn-mqtt.cpp b/RX_FSK/src/conn-mqtt.cpp index cf9c1460..60ba385a 100644 --- a/RX_FSK/src/conn-mqtt.cpp +++ b/RX_FSK/src/conn-mqtt.cpp @@ -220,7 +220,7 @@ void MQTT::publishPeak(double pf, int rssi) timeFormat(); char payload[256]; - snprintf(payload, 256, "{\"time\": \"%s\". \"peak\": %.3f, \"rssi\": %.1f}",time_str, pf*1e-6, rssi/2.0); + snprintf(payload, 256, "{\"time\": \"%s\", \"peak\": %.3f, \"rssi\": %.1f}",time_str, pf*1e-6, rssi/2.0); LOG_D(TAG, "publishPeak: sending %s\n", payload); char topic[128];