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?
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 even100000L
with no difference.