libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
402 stars 59 forks source link

WiFi reconnection often leads to HW reset #179

Open Xmister opened 1 year ago

Xmister commented 1 year ago

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.