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.
Revision 1:45dc700211a7, committed 2019-12-12
- 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);