danimtb / sonoff-danimtb

Alternative firmware for Itead Sonoff (ESP8266/ESP8285 based) devices to use them in Home Assistant
12 stars 3 forks source link

Improve OTA feature #6

Closed danimtb closed 7 years ago

danimtb commented 7 years ago

OTA is currently done with ArduinoOTA library. Create new OTA class to check for new updates available in a server and auto-update firmware.

danimtb commented 7 years ago

HttpUpdate: https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266httpUpdate

Encapsulate it in a class UpdateManager

danimtb commented 7 years ago

Example NoFuss: https://bitbucket.org/xoseperez/nofuss/src/498fd5d68648202eba8fdfc743b01ace1b90a1bd/src/NoFUSSClient.cpp?at=master&fileviewer=file-view-default