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

Function gotIP

samples/MeteoControl/app/application.cpp:78–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway)
79{
80 lcd.clear();
81 lcd << "\7 " << ip;
82 // Restart main screen output
83 procTimer.restart();
84 displayTimer.stop();
85
86 startWebClock();
87 // At first run we will download web server content
88 if(!fileExist("index.html") || !fileExist("config.html") || !fileExist("api.html") ||
89 !fileExist("bootstrap.css.gz") || !fileExist("jquery.js.gz")) {
90 downloadContentFiles();
91 } else {
92 startWebServer();
93 }
94}
95
96void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reason)
97{

Callers

nothing calls this directly

Calls 7

startWebClockFunction · 0.85
fileExistFunction · 0.85
downloadContentFilesFunction · 0.70
startWebServerFunction · 0.70
clearMethod · 0.45
restartMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected