|
ESP8266 Ota Capable
|
A handler that takes care of over-the-air updates of your controller. More...
#include <ota-handler.hpp>
Public Member Functions | |
| void | onWifiConnectionEstablished () override |
| void | handleUpload () |
Public Member Functions inherited from WifiDependent | |
| virtual void | onWifiConnectionLost () |
| Callback function informing about a connection loss. | |
Static Public Member Functions | |
| static auto | getInstance () -> OtaHandler & |
A handler that takes care of over-the-air updates of your controller.
This controller will accept authorized uploads to your controller on the ota port configured via
. The controller will simply delegate uploads to ArduinoOTA.
| void OtaHandler::handleUpload | ( | ) |
Simply forwards uploads to ArduinoOTA.
|
overridevirtual |
This method will be called by WiFiConnection once a network connection has been established. It will then start-up ArduinoOTA and let it listen for uploads on the port specified by SECRET_OTA_PORT.
Implements WifiDependent.