What if you woke up and everything was different
Dependencies: EthernetInterface MQTT mbed-rtos mbed
Fork of MBED-MQTT by
Revision 4:21552aa726cc, committed 2017-03-21
- Comitter:
- kenkron
- Date:
- Tue Mar 21 00:53:21 2017 +0000
- Parent:
- 3:a77ffe1d4c35
- Commit message:
- Polish
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r a77ffe1d4c35 -r 21552aa726cc main.cpp --- a/main.cpp Mon Mar 20 22:29:37 2017 +0000 +++ b/main.cpp Tue Mar 21 00:53:21 2017 +0000 @@ -183,7 +183,7 @@ break; } sprintf(buf, "{\"type\":\"UPDATE\",\"count\":\"%d\", \"max\":\"%d\"}", counter, thresh); - message.payloadlen = strlen(buf)+1; + message.payloadlen = strlen(buf); pc.printf("Publishing MQTT message: %.*s\r\n", message.payloadlen, (char*)message.payload); rc = client.publish(topic, message);