Original Code Repo: https://os.mbed.com/users/priyank12p/code/Electronically-Connected-Intelligent-She/ Modified for Fall 2021 students.

Dependencies:   mbed mbed-http ESP8266

Files at this revision

API Documentation at this revision

Comitter:
priyank12p
Date:
Sat Aug 28 22:17:23 2021 +0000
Parent:
10:e4b6bc6d9b07
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);