Skip to content

vixtory09678/esp32-ota-over-mqtt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published