fix invalid json in spectrum message (#495)

This commit is contained in:
Chris Kuethe 2024-12-29 00:57:41 -08:00 committed by GitHub
parent a7754e9883
commit 30915c334a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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];