Reboot when Blynk connection fails


which could be an elegant and reliable way to reboot device in case of reconnections fail ?

Hey there,

Please give more details like the board you’re using, are you using blynk edgent, etc…

This might help you

Esp32 but I’m not using Edgent because I found several bugs:

it connects to wifi but not to Blynk cloud, it seems impossible to add to my account so I solved using last way to connect.

Use ESP.restart();
Check the link in the previous post

Can you explain please ?
Have you defined the template ID and device name ?

I wrote to support (Mark) he told me that there is a bug and sometimes the memory is not cleared in the right way so he suggests to use esptool

Use the esptool to erase the flash then try again