Closed vindolin closed 2 years ago
I might have found the problem and will take the issue offline for the moment.
Ok found it.
I migrated my own IOT helper library from the Ticker lib to TaskScheduler and must have overlooked a line where I call a setupWifi function before the setupOTA one. I thought I did the same thing with an enabled task but that one get's called the first time when runner.execute runs. All good now 😅
I also recommend moving everything else for the loop
to Tasks
.
So ArduinoOTA.handle();
runs on a more reasonable schedule.
Yep and thanks for the great library!
I tried the library on an ESP8266 and it worked perfectly. When I tried to migrate my program to an ESP32 it crashed with the following error:
assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
It took me some time to pinpoint the problem and it seems to somehow conflict with the ArduinoOTA library. When I commented out the OTA lines the problem was gone. The exact same program runs perfectly on an ESP8266.