MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / radioStateToString

Function radioStateToString

Tactility/Source/service/wifi/Wifi.cpp:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace tt::service::wifi {
9
10const char* radioStateToString(RadioState state) {
11 switch (state) {
12 using enum RadioState;
13 case OnPending:
14 return TT_STRINGIFY(OnPending);
15 case On:
16 return TT_STRINGIFY(On);
17 case ConnectionPending:
18 return TT_STRINGIFY(ConnectionPending);
19 case ConnectionActive:
20 return TT_STRINGIFY(ConnectionActive);
21 case OffPending:
22 return TT_STRINGIFY(OffPending);
23 case Off:
24 return TT_STRINGIFY(Off);
25 }
26 check(false, "not implemented");
27}
28
29extern const ServiceManifest manifest;
30

Callers 5

onWifiEventMethod · 0.50
onShowMethod · 0.50
onBtEventMethod · 0.50
onShowMethod · 0.50

Calls 1

checkFunction · 0.50

Tested by

no test coverage detected