Menu

Special Wiki Pages

Special Thanks!

This Wiki wouldn't be possible without @ToeiRei. Thank you for all of your help and guidance. Another special mention goes out to @Darkgrue, who writes and maintains the technical documentation.

This is an old revision of the document!


BLE_OTA_Python

A script for performing OTA update over BLE on ESP32.

Flashing scripts

  • ota.zip Command line scripts for PC and OSX to flash firmware

Requirements

Bleak $ pip install bleak

Note: The latest Python on Windows (3.10.0) does not like pythonnet, which is a prerequisite for bleak. Installing Python 3.9.7, followed by pip install bleak works.

Usage

python ota.py “01:23:45:67:89:ab” “firmware.bin”

You can create a batch file on Windows:

@echo off
python ota.py “40:F5:20:4A:45:B7” “firmware.bin”
pause

Back to top