Low power techniques with a web portal.
Posted: Tue Oct 20, 2020 5:26 pm
Noob about low power techniques.
I've written plenty of projects to do sensors and hosting webpages to show those values. I can do it for soft and station. I think I understand this pretty well.
I've never done anything using the various sleep modes. From reading about low power techniques, we do our readings, then turn off the ESP8266 for some duration... rinse and repeat. I would like to expose the sensor readings through a softAPConfig web page using the above techniques. I want to connect directly from a phone looking for the WiFi SSID.
I want to say... every couple of seconds (time enough so a phone doesn't give up) check for any incoming connection? If there is one, allow the connection and stay running as long as is necessary (seconds, minutes hours) to fulfil the phones requests. If no phone is trying to connect, go to sleep until another couple of seconds.
Is it possible and/or practical? Can I save a large percentage of power requirements especially if nothing is trying to connect? What keywords should I use to research this?
Thanks
I've written plenty of projects to do sensors and hosting webpages to show those values. I can do it for soft and station. I think I understand this pretty well.
I've never done anything using the various sleep modes. From reading about low power techniques, we do our readings, then turn off the ESP8266 for some duration... rinse and repeat. I would like to expose the sensor readings through a softAPConfig web page using the above techniques. I want to connect directly from a phone looking for the WiFi SSID.
I want to say... every couple of seconds (time enough so a phone doesn't give up) check for any incoming connection? If there is one, allow the connection and stay running as long as is necessary (seconds, minutes hours) to fulfil the phones requests. If no phone is trying to connect, go to sleep until another couple of seconds.
Is it possible and/or practical? Can I save a large percentage of power requirements especially if nothing is trying to connect? What keywords should I use to research this?
Thanks