Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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 |
--- 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);
