Unable to send/receive MQTT during HTTPS OTA download (CA-84)
Closed this issue · 2 comments
msn444 commented
I am unable to send or receive MQTT during OTA downloads using the ESP-IDF HTTPS OTA library. MQTT transactions continue as soon as the OTA session closes.
Am I hitting a limit to the number of simultaneous connections allowed?
shahpiyushv commented
@msn444 hitting a limit to the number of simultaneous connections allowed seems unlikely. Can you check the priority of the threads? It could be possible that the OTA thread is blocking the mqtt thread.
msn444 commented
Awesome, you're exactly right. I was actually performing the OTA transfer inside the MQTT subscription callback. Moved it to its own task and problem solved. Thanks!