MQTT during HTTPS OTA download

msn444
Posts: 9
Joined: Mon Jun 25, 2018 11:22 pm

MQTT during HTTPS OTA download

Postby msn444 » Mon Aug 17, 2020 10:04 pm

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

msn444
Posts: 9
Joined: Mon Jun 25, 2018 11:22 pm

Re: MQTT during HTTPS OTA download

Postby msn444 » Tue Aug 18, 2020 6:59 pm

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.

Who is online

Users browsing this forum: Majestic-12 [Bot] and 220 guests