Lovkesh Chauhan / Mbed OS SmartKitchen_MiniProject_RTES

Dependencies:   C12832 LM75B MQ2 MQTT

Files at this revision

API Documentation at this revision

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);