WiFi keep disconnecting.So how to restart esp32 if wifi is not able to connect for a certin time?

Hi,
My esp32 is not able to connect to wifi sometime for a long period until it is restarted. so, Please suggest, How to handle this issue?
My idea was to restart the device after a certain time if wifi is not able to connect for a long period.
I tried to use a repeat timer in Net.setStatusEventHandler() but whenever I use this handler rest of my code stop making any effect and I am not able to debug it. Please help me with this.

1 Like

Hi Raj,
I include a DS3231 and the device reset in a specific hour of the day. Maybe you can do something similar.