Priyank Kalgaonkar / Electronically Connected Intelligent Shelves

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
priyank12p
Date:
Thu Dec 12 01:27:12 2019 +0000
Parent:
0:b0c4c25d37ab
Commit message:
Minor changes

Changed in this revision

FinalVersionECISsystem/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/FinalVersionECISsystem/main.cpp	Thu Dec 12 01:04:52 2019 +0000
+++ b/FinalVersionECISsystem/main.cpp	Thu Dec 12 01:27:12 2019 +0000
@@ -127,19 +127,19 @@
         wait(1);
         
     //Pushing the data acquired from HC-SR04 Ultrasonic Sensor to Cloud Server via API
-        //pc.printf("Product X - Sensor 1: ");
+        pc.printf("Product X - Sensor 1: ");
         sprintf(snd,"GET https://api.thingspeak.com/update?api_key=O59NSRSQZCJ2G6WK&field1=%f\r", dist_percent1);
         printf("Product X: Percent Stock Remaining: %f\n\r", dist_percent1);
         wifi.SendCMD(snd);
-        //pc.printf("%s\r",snd);
+        pc.printf("%s\r",snd);
         wait(1);
         wifi.RcvReply(rcv, 1000);
         pc.printf("%s\r", rcv);
         
-        //pc.printf("Product Y - Sensor 2: ");
+        pc.printf("Product Y - Sensor 2: ");
         sprintf(snd,"GET https://api.thingspeak.com/update?api_key=O59NSRSQZCJ2G6WK&field2=%f\n\r\n\r", dist_percent2);
         wifi.SendCMD(snd);
-        //pc.printf("%s\r",snd);
+        pc.printf("%s\r",snd);
         printf("Product Y: Percent Stock Remaining: %f\n\r\n\r", dist_percent2);
         wait(1);
         wifi.RcvReply(rcv, 1000);