MCPcopy Create free account
hub / github.com/SmingHub/Sming / getConnectionStatusName

Method getConnectionStatusName

Sming/Components/Network/src/Platform/Station.cpp:59–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59String StationClass::getConnectionStatusName() const
60{
61 switch(getConnectionStatus()) {
62 case eSCS_Idle:
63 return F("Idle");
64 case eSCS_Connecting:
65 return F("Connecting");
66 case eSCS_WrongPassword:
67 return F("Wrong password");
68 case eSCS_AccessPointNotFound:
69 return F("Access point not found");
70 case eSCS_ConnectionFailed:
71 return F("Connection failed");
72 case eSCS_GotIP:
73 return F("Successful connected");
74 default:
75 SYSTEM_ERROR("Unknown status: %d", getConnectionStatus());
76 return nullptr;
77 };
78}

Callers 1

onAjaxConnectFunction · 0.80

Calls 1

FFunction · 0.50

Tested by

no test coverage detected