Original Code Repo: https://os.mbed.com/users/priyank12p/code/Electronically-Connected-Intelligent-She/ Modified for Fall 2021 students.
Dependencies: mbed mbed-http ESP8266
Diff: main.cpp
- Revision:
- 11:756321f0b0cd
- Parent:
- 10:e4b6bc6d9b07
diff -r e4b6bc6d9b07 -r 756321f0b0cd main.cpp --- 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);