26#include "platforms/is_platform.h"
29#if FL_HAS_INCLUDE("soc/soc_caps.h")
31#include "soc/soc_caps.h"
37#if (defined(FL_IS_ESP32) && defined(SOC_WIFI_SUPPORTED) && SOC_WIFI_SUPPORTED && \
38 FL_HAS_INCLUDE(<esp_wifi.h>)) || \
39 (defined(FL_IS_RP2350) && defined(PICO_CYW43_SUPPORTED) && \
40 FL_HAS_INCLUDE(<WiFi.h>))
41#define FL_WIFI_AVAILABLE 1
43#define FL_WIFI_AVAILABLE 0
bool isConnected() FL_NO_EXCEPT
True when the station interface has an IP.
const char * toString(Status s) FL_NO_EXCEPT
Human-readable name for a Status value.
void stop() FL_NO_EXCEPT
Stop WiFi entirely (STA and AP).
bool startAp(const char *, const char *, u8) FL_NO_EXCEPT
Bring up a SoftAP.
Status status() FL_NO_EXCEPT
Current connection state.
bool connectSta(const char *, const char *) FL_NO_EXCEPT
Start an asynchronous station-mode join.
fl::string ipAddress() FL_NO_EXCEPT
Dotted-quad IP of the station interface ("" until connected).
Status
Connection state, advanced by the platform's event handlers.
@ UNSUPPORTED
No WiFi on this platform (stub build)
@ AP_ACTIVE
SoftAP is up (no STA connection)
@ CONNECTING
STA join in progress.
@ CONNECTED
STA has an IP.
@ FAILED
STA join gave up (bad credentials / no AP)
fl::string apIpAddress() FL_NO_EXCEPT
Dotted-quad IP of the SoftAP interface ("" when AP is down).
InputGamut g FL_NO_EXCEPT
Base definition for an LED controller.