FastLED 3.10.6
Loading...
Searching...
No Matches

◆ toString()

const char * fl::net::wifi::toString ( Status s)

Human-readable name for a Status value.

Definition at line 18 of file wifi.cpp.hpp.

18 {
19 switch (s) {
20 case Status::UNSUPPORTED: return "UNSUPPORTED";
21 case Status::IDLE: return "IDLE";
22 case Status::CONNECTING: return "CONNECTING";
23 case Status::CONNECTED: return "CONNECTED";
24 case Status::FAILED: return "FAILED";
25 case Status::AP_ACTIVE: return "AP_ACTIVE";
26 }
27 return "UNKNOWN";
28}
@ UNSUPPORTED
No WiFi on this platform (stub build)
Definition wifi.h:52
@ AP_ACTIVE
SoftAP is up (no STA connection)
Definition wifi.h:57
@ CONNECTING
STA join in progress.
Definition wifi.h:54
@ CONNECTED
STA has an IP.
Definition wifi.h:55
@ IDLE
WiFi not started.
Definition wifi.h:53
@ FAILED
STA join gave up (bad credentials / no AP)
Definition wifi.h:56

References AP_ACTIVE, CONNECTED, CONNECTING, FAILED, fl::FL_NO_EXCEPT, IDLE, and UNSUPPORTED.