Fork of the espurna firmware for `mhsw` switches
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.1 KiB

  1. # Over-the-air updates
  2. ## Manually driven OTA updates
  3. Once you have flashed your board with the ESPurna firmware you can flash it again over-the-air using PlatformIO and the ```ota``` environment:
  4. ```bash
  5. > pio run -t upload -e node-debug-ota
  6. > pio run -t uploadfs -e node-debug-ota
  7. ```
  8. When using OTA environment it defaults to the IP address of the device in SoftAP mode. If you want to flash it when connected to your home network best way is to supply the IP of the device:
  9. ```bash
  10. > pio run -t upload -e node-debug-ota --upload-port 192.168.1.151
  11. > pio run -t uploadfs -e node-debug-ota --upload-port 192.168.1.151
  12. ```
  13. Please note that if you have changed the admin password from the web interface you will have to change it too in the platformio.ini file for the OTA to work. Check for the *upload_flags* option in your ota-enabled environment.
  14. ## Automatic OTA updates
  15. You can also use the automatic OTA update feature. Check the [NoFUSS library][6] for more info.
  16. This options is disabled by default. Enable it in your firmware with the -DENABLE_FUSS build flag.
  17. [6]: https://bitbucket.org/xoseperez/nofuss