Page 1 of 1

MQTT during HTTPS OTA download

Posted: Mon Aug 17, 2020 10:04 pm
by msn444
My application uses Google Cloud Platform IoT along with the ESP-IDF HTTPS OTA library. The OTA process works fine, however I am unable to send or receive MQTT during the HTTPS download. MQTT transactions continue as soon as the OTA session closes.

Am I hitting a limit to the number of simultaneous connections allowed? Is there a way around this? I would like to be able to send status information during the OTA upgrade.

Thanks,
Mike

Re: MQTT during HTTPS OTA download

Posted: Tue Aug 18, 2020 6:59 pm
by msn444
Never mind. Problem was due to the fact that I was initiating the OTA process inside the MQTT subscription callback, and was therefore blocking MQTT processing. Moved it to its own task and problem solved.