Leakage sensor
Loading...
Searching...
No Matches
OtaHandler Class Reference

A handler that takes care of over-the-air updates of your controller. More...

#include <ota-handler.hpp>

Inheritance diagram for OtaHandler:
WifiDependent

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 &
 

Detailed Description

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

SECRET_OTA_PORT

. The controller will simply delegate uploads to ArduinoOTA.

Member Function Documentation

◆ handleUpload()

void OtaHandler::handleUpload ( )

Simply forwards uploads to ArduinoOTA.

◆ onWifiConnectionEstablished()

void OtaHandler::onWifiConnectionEstablished ( )
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.


The documentation for this class was generated from the following files: