-->
Page 1 of 1

Low power techniques with a web portal.

PostPosted: Tue Oct 20, 2020 5:26 pm
by Inq720
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

Re: Low power techniques with a web portal.

PostPosted: Tue Oct 20, 2020 8:14 pm
by davydnorris
This won't work as you will need to keep the radio switched on and transmitting as an AP for your phone to even detect it.

Low power modes work best when the ESP is a Wifi client not an AP - I would look at setting up a server that the ESP can publish results to periodically, either a local machine or something cloud based. You could even use a Raspberry Pi as the server.

Re: Low power techniques with a web portal.

PostPosted: Wed Oct 21, 2020 4:46 am
by Inq720
Thank you. That's pretty much what I expected, but was hoping someone might know some slick alternative. ;)