141 bool beginWiFi(
const char* hostname,
const char* password,
void onProgress(ProgressCallback callback) FL_NO_EXCEPT
Set progress callback (called during firmware upload)
OTA() FL_NO_EXCEPT
Default constructor (lazy initialization)
u8 getFailedServices() const FL_NO_EXCEPT
Get bitmask of services that failed to initialize.
bool enableApFallback(const char *ap_ssid, const char *ap_pass=nullptr) FL_NO_EXCEPT
Enable AP (Access Point) fallback mode if Wi-Fi STA connection fails.
void onState(StateCallback callback) FL_NO_EXCEPT
Set state callback (called on state transitions)
fl::function< void(const char *message)> ErrorCallback
Callback function type for OTA errors.
void onBeforeReboot(void(*callback)()) FL_NO_EXCEPT
Set callback to be called before device reboots after OTA update.
fl::function< void(size_t written, size_t total)> ProgressCallback
Callback function type for OTA progress updates.
~OTA() FL_NO_EXCEPT
Destructor - cleans up resources.
void poll() FL_NO_EXCEPT
Poll OTA handlers (must be called regularly in loop())
bool isConnected() const FL_NO_EXCEPT
Check if WiFi is connected.
bool beginWiFi(const char *hostname, const char *password, const char *ssid, const char *wifi_pass) FL_NO_EXCEPT
Start OTA with full Wi-Fi setup (station mode)
fl::shared_ptr< fl::platforms::IOTA > mImpl
void onError(ErrorCallback callback) FL_NO_EXCEPT
Set error callback (called on OTA errors)
fl::function< void(u8 state)> StateCallback
Callback function type for OTA state changes.
bool begin(const char *hostname, const char *password) FL_NO_EXCEPT
Start OTA services only (network already configured)
Service
OTA service initialization status flags.
@ HTTP_FAILED
HTTP server failed to start (Web OTA unavailable)
@ MDNS_FAILED
mDNS initialization failed (device not discoverable at hostname.local)
@ ARDUINO_OTA_FAILED
ArduinoOTA initialization failed (IDE OTA unavailable)
u8 u8 fract8 blur_amount FL_NO_EXCEPT
Base definition for an LED controller.