libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

WiFi reconnection often leads to HW reset

Open Xmister opened this issue 2 years ago • 0 comments

I noticed that if I reboot the router, all my BK72XX esphome devices reboot as well. (Relays clicking, etc) Some might survive a reconnection occasionally, but most of the time they reboot. Here is a debug output from a CBU connected to a lab PSU at 3.3v where the WIFI network is available but deliberately not accept the connection, hence forcing the chip to keep reconnecting. (The wifi passwords are temporarily set up for this test) wifidebug.txt

It looks like watchdog needs to be adjusted for wifi reconnection?

EDIT: I tried to set https://github.com/esphome/esphome/blob/2c94c3d96f932056a1b8099906b3fabc57e6c79b/esphome/components/libretiny/core.cpp#L22 to 20000L or even 100000L with no difference.

Xmister avatar Sep 29 '23 13:09 Xmister