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

Function connectFail

samples/MeteoControl/app/application.cpp:96–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reason)
97{
98 debugf("connection FAILED: %s", WifiEvents.getDisconnectReasonDesc(reason).c_str());
99 WifiAccessPoint.config("MeteoConfig", "", AUTH_OPEN);
100 WifiAccessPoint.enable(true);
101 // Stop main screen output
102 procTimer.stop();
103 displayTimer.stop();
104 lcd.clear();
105
106 lcd.setCursor(0, 0);
107 lcd.print("WiFi MeteoConfig");
108 lcd.setCursor(0, 1);
109 lcd.print(" ");
110 lcd.print(WifiAccessPoint.getIP());
111
112 startWebServer();
113 WifiStation.disconnect();
114 WifiStation.connect();
115}
116
117////// WEB Clock //////
118

Callers

nothing calls this directly

Calls 12

startWebServerFunction · 0.70
c_strMethod · 0.45
configMethod · 0.45
enableMethod · 0.45
stopMethod · 0.45
clearMethod · 0.45
setCursorMethod · 0.45
printMethod · 0.45
getIPMethod · 0.45
disconnectMethod · 0.45
connectMethod · 0.45

Tested by

no test coverage detected