WIFI+MQTT_MBEDOSˊ6

Files at this revision

API Documentation at this revision

Comitter:
cornetlin
Date:
Tue Jan 05 17:31:48 2021 +0000
Parent:
1:e22bfb6f1a26
Commit message:
update202101060131

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Tue Jan 05 11:18:27 2021 +0000
+++ b/main.cpp	Tue Jan 05 17:31:48 2021 +0000
@@ -279,9 +279,7 @@
             const size_t len = 128;
             char buf[len];
             //snprintf(buf, len, "Message #%d from %s.", count, MQTT_DEVICE_ID);
-            int n = snprintf(buf, sizeof(buf), 
-            "{\"S1\":%d, \"S2\":%s}",
-            count, MQTT_DEVICE_ID);
+            int n = snprintf(buf, sizeof(buf), "{\"S1\":%d,\"S2\":%s}",count, MQTT_DEVICE_ID);
             message.payload = (void*)buf;
             message.qos = MQTT::QOS0;
             message.id = id++;