I didn’t really try to search it and decided to test it myself. Have you ever wondered what is the Execution time in order to calculate your battery life? Well… I did.
This is far from a scientific, highly accurate method but I found the findings interesting enough to share.
Next step is to build a proper PCB based on WROOM-02 and check the current draw.
Just a side note, I did something similar with Azure (MQTT) and averaged 8 sec. On this case I didn’t spend a lot of time as the their Provisioning option has too many clicks in my opinion.
Why? If you have. local server then I’d expect this to be much lower.
There are actually quite a few topics about deep sleep and connection times. It’s not something I’ve tried yet, but it is something that interest me for a potential future project.
It seems that the Blynk library used to contain a line that forced a 5 second delay prior to connection, as discussed here:
If you’re getting sub 5 second results from waking up to sleeping then I guess this has now been removed from the library.
If you’re not too worried about having the ‘last seen’ time available for your device then I think you’d probably get quicker results if you used the API to update the server, rather than doing the full Blynk connect thing.
“the guy with the Swiss accecent” has quite a few videos on his YouTube channel dedicated to deep sleep, which are well worth watching (and it’s worth reading the comments too). Here’s one of his early ones:
In his later videos he’s done some in-depth comparisons of various ESP-32 boards that give some very interesting results.
Are you using a normal ESP8266WiFi library with static IP for your device, instead of the Blynk.connect/begin routines?
It might be worth adding-in a few serial prints at various points along the way to break-down how long the initialisation, Wi-Fi connect, and HTTP elements of the code are taking.
It seems to be generally recommended that you use the GET command rather than PUT for writing data to the Blynk server.