Skip to content

Upgrade to new release using Over The Air flashing

Robert van den Breemen edited this page Mar 4, 2023 · 13 revisions

To upgrade the firmware once you are set up, you can perform an Over-The-Air (OTA) upgrade via the web interface.

  1. Download the latest release from the Github release page: https://github.com/rvdbreemen/OTGW-firmware/releases
  2. Now go to your OTGW WebUI, using: http://otgw.local or just goto the IP of your OTGW directly, for example: http://192.168.0.10
  3. In the webUI click on the file-explorer icon in the navigation bar.

File Explorer Button

  1. To save your personal settings, download settings.ini so you can upload it after you upgrade. In case you modified other files, like the mqttha.cfg, then download those too.

  2. In the file explorer you need to click on the [Update Firmware] button.

Update Firmware button

  1. In the flash firmware utility UI you need to upload both binary files for each release.

Firmware flash utility webpage

  1. Choose your firmware, make sure to select the correct ino.bin, then click the flash firmware button.
  2. Be patient while flashing, this does take a little while.
  3. Now repeat step 7 with mklittlefs.bin and click the flash littlefs button.
  4. If you saved the settings, upload settings.ini using the file explorer, or use the settings page and set up your OTGW again.
  5. Always reboot after uploading the settings.ini file to make sure the firmware reads the settings back to memory.

The wifi settings should not be overwritten by OTA flashing, if you need that, then it's best to flash your device as an initial setup and erase your ESP8266 before you flash the first time.