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: easy-connect-v16 Watchdog FP MQTTPacket RecordType-v-16 watersenor_and_temp_code
Revision 10:5d45f805080a, committed 2017-12-02
- Comitter:
- DuyLionTran
- Date:
- Sat Dec 02 04:59:59 2017 +0000
- Parent:
- 9:268373df20d7
- Child:
- 11:3802c82a5ae9
- Commit message:
- version 1.1.2
Changed in this revision
| MQTT.lib | Show annotated file Show diff for this revision Revisions of this file |
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/MQTT.lib Fri Dec 01 14:51:46 2017 +0000 +++ b/MQTT.lib Sat Dec 02 04:59:59 2017 +0000 @@ -1,1 +1,1 @@ -https://os.mbed.com/users/DuyLionTran/code/MQTT_Test/#36e76acf2166 +https://os.mbed.com/users/DuyLionTran/code/MQTT_Test/#0934f0842804
--- a/main.cpp Fri Dec 01 14:51:46 2017 +0000
+++ b/main.cpp Sat Dec 02 04:59:59 2017 +0000
@@ -253,14 +253,12 @@
MQTT_init();
wait(0.5);
MQTT_publishDeviceInfo();
-
-
+
setTimer();
uploadPeriod = 6;
printf("Get into loop\r\n");
-
-
+
while(true) {
if ((uint32_t)(readTime.read() - lastRead) > uploadPeriod) {
char payload[100];