Test code to interface AOD UPAS with IoT provider.
Dependencies: ESP8266_AT NCP5623BMUTBG mbed ADS1115 AOD_Calculation BME280 PMS5003 SunPosition CAM_M8
Diff: main.cpp
- Revision:
- 4:8a667120ee2b
- Parent:
- 3:f878eab2ebe0
- Child:
- 5:513617961138
--- a/main.cpp Sun Nov 26 01:43:18 2017 +0000 +++ b/main.cpp Mon Nov 27 00:52:52 2017 +0000 @@ -232,7 +232,7 @@ getAODs(); //send data to thingspeaks - sprintf(someArray,"GET https://api.thingspeak.com/update?api_key=32QVSK5INPPAVIV0&field1=%.2f&field2=%.2f&field3=%.2f&field4=%.2f\r\n\r\n",AOD_440,AOD_520,AOD_680,AOD_870); + sprintf(someArray,"GET https://api.thingspeak.com/update?api_key=32QVSK5INPPAVIV0&field1=%.2f&field2=%.2f&field3=%.2f&field4=%.2f&field5=%.2f&field6=%.2f\r\n\r\n",AOD_440,AOD_520,AOD_680,AOD_870,temperature,pressure); esp.delete_tcp_server(); esp.establish_connection(0, conn_type, server, 80);