fix invalid json in spectrum message

This commit is contained in:
Chris Kuethe 2024-12-27 10:18:13 -08:00 committed by GitHub
parent a7754e9883
commit 6a650bfdfc
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];