With deep sleep function the board don't get online again

First of all, do you have pin D0 connected to the RST pin? If not then it will never wake up.

Secondly, when you write Blynk code for deep sleep all the normal Blynk rules go out of the window. You SHOULD put everything in the void loop and you SHOULDNT use timers.

I did quite a bit of work with @christophebl on his beehive project, which is summarised here:

It’s also worth noting that Blynk.begin is a blocking function and if your device can’t connect to WiFi or Blynk then it will keep trying until the battery goes flat.
@christophebl’s code solves that by using Blynk.connect and restricting the number of attempts before forcing the device to sleep.

Pete.

1 Like