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: C12832 LM75B MQ2 MQTT
Revision 25:f2980e155d95, committed 2022-01-04
- Comitter:
- lovkesh_chauhan
- Date:
- Tue Jan 04 13:24:18 2022 +0000
- Parent:
- 24:74f170dfd425
- Commit message:
- Update
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jan 04 11:10:00 2022 +0000
+++ b/main.cpp Tue Jan 04 13:24:18 2022 +0000
@@ -647,25 +647,12 @@
while (1){
logMessage("GAS: %d, CO: %d, Smoke: %d, TEMP = %0.1f, Water = %d", GAS_level, CO_level, SMOKE_level, TEMPERATURE, WATER_LEVEL);
- //publish_field1();
- //wait(1);
- //publish_field2();
- //wait(1);
- //publish_field3();
- //wait(1);
- //publish_field4();
- //wait(5);
- //publish_field5();
- //wait(5);
- //publish_field5();
- //wait(1);
- //publish_field6();
- //wait(1);
- //publish_field7();
- //wait(1);
- //publish_field8();
+ publish_field4();
+ wait(5);
+ publish_field5();
+ wait(5);
client.yield(50);
- //client.connect(data);
+
}
if ((rc = client.unsubscribe(topic)) != 0)
logMessage("rc from unsubscribe was %d\r\n", rc);