Skip to content

Commit

Permalink
fix invalid json in spectrum message (#495)
Browse files Browse the repository at this point in the history
  • Loading branch information
ckuethe authored Dec 29, 2024
1 parent a7754e9 commit 30915c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RX_FSK/src/conn-mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 30915c3

Please sign in to comment.