I did some testing to see how much it takes to connect to a wifi network, comparing
normal boot vs.
reset from deep sleep:
- Normal boot - DHCP Enabled: 5 seconds
- Deepsleep - DHCP Enabled: 3 seconds
- Normal boot - Static IP addressing: 2 seconds
- Deepsleep - Static IP addressing: 0 seconds
Times were taken with utime.time() function. I didn't have time to experiment too much with utime module and find a way to time to the millisecond, but I have the feeling that normal boot + static ip addressing is > 2.5 seconds (or either way pretty close to 2.5).
Deep sleep with static ip addressing is instantaneous.
This, together with the approach shown in the video I put above, would allow making a pretty great remote for controlling lights.