| 8 | void STAGotIP(IpAddress ip, IpAddress mask, IpAddress gateway); |
| 9 | |
| 10 | void init() |
| 11 | { |
| 12 | spiffs_mount(); // Mount file system, in order to work with files |
| 13 | Serial.begin(SERIAL_BAUD_RATE); // 115200 by default |
| 14 | Serial.systemDebugOutput(false); |
| 15 | |
| 16 | // Set higher CPU freq & disable wifi sleep |
| 17 | System.setCpuFrequency(CpuCycleClockFast::cpuFrequency()); |
| 18 | wifi_set_sleep_type(NONE_SLEEP_T); |
| 19 | |
| 20 | ActiveConfig = loadConfig(); |
| 21 | |
| 22 | // Attach Wifi events handlers |
| 23 | WifiEvents.onStationDisconnect(STADisconnect); |
| 24 | WifiEvents.onStationGotIP(STAGotIP); |
| 25 | |
| 26 | System.onReady(startWebServer); |
| 27 | |
| 28 | counterTimer.initializeMs<1000>(counterLoop).start(); |
| 29 | } |
| 30 | |
| 31 | void counterLoop() |
| 32 | { |
nothing calls this directly
no test coverage detected