- Tue Jun 23, 2015 6:17 am
#21366
Hi TyTower,
Re docs yeah Ive been reading up on the Arduno website, and trying to figure out whats different on the ESP8266, as you say the ESP8266 is way more powerful.. #lots to learn!
With regards to the temperature sensor, currently Im just doing a "delay(300000)" , not power efficient but works.. I like the idea of doing Deep Sleep in between readings. From what I understand when a deepSleep finishes it restarts the sketch, so to be able to restart where you left off you need to store data in EEPROM (which is fine).
Now for this project, I think ive figured it out.. I want to update the temperature on thinkspeak every 5mins AND allow me to query it via a REST/WebService call..
Looking at the WebServer APIs Ive realised that he client.available() method is nonBlocking, ie a loop. Therefore its nice and easy for me to put a conditional if which basically queries the time and works out if 5mins has passed if not then yield to the loop and so on...
Well thats the theory !
I also looked at the advancedServer, very nice but to be honest I think overkill for most ESP8266 apps, my gut feeling is the correct architecture is multiple ESP8266s feeding a RaspberryPI (or similar) with data.. Leaving the complex processing /webserver etc to the PI (apache/node.js/tomcat etc)
When I get this working I'll post it for other novices to see