I want to perform an OTA update in an ESP8266 board using the MQTT protocol. This device isn't in the same network, in fact, it is hundred kilometers away.
The idea is to generate the .bin in a server, publish (probably in chunks, I guess) it to the given topic, from which the microcontroller is listening and performs that update.
This ESP8266 has GSM connection and sends sensor data through the MQTT protocol. It is also subscribed to a topic from which I would like to perform the OTA, but I don't know how to do it.
Any idea?
Thanks! Diego