The purpose of this code is to rotate an HC-SR04 and measure the perimeter of a room. The measurements will then be sent to ThingSpeak to record the data.
Dependencies: mbed mbed-http TextLCD ESP8266 ULN2003_StepperDriver
Revision 11:756321f0b0cd, committed 2021-08-28
- Comitter:
- priyank12p
- Date:
- Sat Aug 28 22:17:23 2021 +0000
- Parent:
- 10:e4b6bc6d9b07
- Child:
- 12:701ea1b1d513
- Commit message:
- Push for Fall 2021 ECE533 Students
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Wed Aug 19 18:51:26 2020 +0000
+++ b/main.cpp Sat Aug 28 22:17:23 2021 +0000
@@ -118,8 +118,9 @@
wait(1);
//Pushing the data acquired from HC-SR04 Ultrasonic Sensor to Cloud Server via API
+ //Replace with your own API Request - Write a Channel Feed below
pc.printf("Product X - Sensor 1: \n\r");
- sprintf(snd,"\rhttps://api.thingspeak.com/update?api_key=O59NSRSQZCJ2G6WK&field1=%f\r", dist_percent1);
+ sprintf(snd,"\r ***Replace with your own API Request - Write a Channel Feed below*** \r", dist_percent1);
printf("Percent Stock X Remaining: %f\n\r", dist_percent1);
wifi.SendCMD(snd);
pc.printf("%s\r",snd);