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.

BLE_OTA_Python

A script for performing OTA update over BLE on ESP32.

Flashing scripts

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”

python ota2.py “firmware.bin” (automatically scans for MiTail clients)

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