Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.19 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.19 KB

ESP32 OTA over MQTT

This repository is part of the blog post ESP32 Firmware OTA ด้วย MQTT Protocol (Concept + Code ตัวอย่าง) (currently in Thai) on the blog I AM {TEAM}

Video Example

ESP32 OTA over MQTT

Required

  • python 3+
  • platformio

How to use

There is a Python script in the scripts/ota_update.py directory. You can use your own firmware binary file for testing, and the file must be named firmware.bin.

First, set up the MQTT broker locally. You can use Mosquitto as the MQTT broker server or any other MQTT broker tools you are familiar with.

Then run the following command. This script will read the firmware.bin file and start sending the firmware to the ota topic. If the ESP32 or your board successfully receives the firmware, it will return the status ok to the ota/feedback topic, and then ota_update.py will send the next chunk of the package.

python3 ./scripts/ota_update.py