OTA - venice1200/MiSTer_tty2oled GitHub Wiki

📡 OTA = Over the Air = Programming your ESP32 via Wireless 📡

This feature isn't available for ESP8266 at the time of writing because it lacks of free remaining memory.

If you like to use OTA, you need to add valid Wireless Credentials to your Arduino File cred.h before
you can upload the OTA enabled program to your tty2oled's ESP32.
See: https://github.com/venice1200/MiSTer_tty2oled/blob/main/MiSTer_SSD1322_USB_Testing/cred.h#L6

Once programmed, you can program your ESP Over the Air!

To enable the OTA Mode you need to send the Command "CMDENOTA" to the ESP32.
Run echo "CMDENOTA" > /dev/ttyUSB0 via SSH or CLI for this.
❗ If you want to stop OTA, Reset your ESP or run echo "CMDRESET" > /dev/ttyUSB0

After sending the "CMDENOTA" command you should see...
OTA02

...and after your ESP32 was connected to your Wireless Network, the Display should show the connection.
OTA03

If the ESP is in OTA Mode you should see an new connection Port within the Arduino IDE.
Choose this Port and start the transfer.
OTA01

When transfering the program you should see a lot of red "Uploading" dots...
OTA06

The tty2oled Display should show the Progress...
OTA04

...and when transfer has finished the ESP32 reboots afterwards.
OTA05

Done 😃