munet Network Library for muwerk Scheduler
A muwerk network library supporting WiFi, NTP, OTA and MQTT for ESP8266 and ESP32 and serial links for all platforms
|
munet OTA Class More...
#include <ota.h>
Public Member Functions | |
Ota () | |
void | begin (Scheduler *_pSched) |
munet OTA Class
The OTA object listens for network connections and automatically establishes OTA update funcionality on successful connection to WiFi. In case of software update, all other muwerk tasks are automatically halted, and software update is granted priority.
Network failures are handled automatically.
Security note: currently the API doesn't support setting an OTA password. Please use:
to set an OTA password. This will be supported within the API in a future version.
|
inline |
Instantiate a over-the-air (OTA) software update object.
|
inline |
Setup OTA over-the-air software update.
This activates the OTA interface. As soon as a network connection is available, listening for OTA requests are started. Handling of network connections and disconnnects is done automatically and does not require further interaction.
_pSched | Pointer to the muwerk scheduler. |