OTA updates
After the first USB flash, you can update the firmware over Wi-Fi with ElegantOTA.
From the browser
Build the firmware
pio run -e esp32devThe binary is written to .pio/build/esp32dev/firmware.bin. Release builds are also attached to
each GitHub release.
From PlatformIO
PlatformIO can upload over OTA with the bundled upload.py script. Install its dependencies once:
pip install requests_toolbelt tqdmThen add these lines to your environment in platformio.ini:
extra_scripts = upload.py
upload_protocol = custom
custom_upload_url = http://<device-ip>/update
custom_username = admin
custom_password = your-ota-passwordRun the normal upload command:
pio run -e esp32dev -t upload