I have an application with multiple open network sockets and I want to do an esp_restart() after I have done an OTA update.
Problem is the ESP does not restart, but just stops WiFi and outputs:
Code: Select all
I (59383) wifi: state: run -> init (0)
I (59383) wifi: pm stop, total sleep time: 0/5686139
I (59383) wifi: n:6 0, o:6 1, ap:255 255, sta:6 1, prof:8
I (59393) EVENT: SYSTEM_EVENT_STA_DISCONNECTED
WARNING: mbox 0x3ffda484 had a consumer who never unblocked. Leaking!
I (61393) EVENT: SYSTEM_EVENT_STA_STOP
I suspect there are some strange left-overs from something?
When I use my OTA code with the esp_restart() call in a new clean project I don't get this error and the esp restarts as it should. So what could lead to this behavior and prevent a restart?
Thank you!
Best,
Malte