I am working on a remote thermometer for my greenhouse using an ESP8266-01 and DHT11.
Currently I am using AsyncStreams + B4XSerializator which is simple to work with and works well.
Now I want to put the ESP8266 in deep sleep mode so save battery and only wake up every 5 minutes or so. But the socket on the server side disconnects when the ESP goes to sleep and of course it doesn't know when to wake up. I can't rely on a timer for this as it would not be precise enough.
It is possible to let the server listen continuously even after the ESP disconnects?
My first attempt before using AsyncStreams was via a webserver on my Raspi and that would of course work. But I like the more streamlined way with AsyncStreams + B4XSerializator.
Currently I am using AsyncStreams + B4XSerializator which is simple to work with and works well.
Now I want to put the ESP8266 in deep sleep mode so save battery and only wake up every 5 minutes or so. But the socket on the server side disconnects when the ESP goes to sleep and of course it doesn't know when to wake up. I can't rely on a timer for this as it would not be precise enough.
It is possible to let the server listen continuously even after the ESP disconnects?
My first attempt before using AsyncStreams was via a webserver on my Raspi and that would of course work. But I like the more streamlined way with AsyncStreams + B4XSerializator.