| 76 | } |
| 77 | |
| 78 | void 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 | |
| 96 | void connectFail(const String& ssid, MacAddress bssid, WifiDisconnectReason reason) |
| 97 | { |
nothing calls this directly
no test coverage detected