| 46 | } // namespace |
| 47 | |
| 48 | void init() |
| 49 | { |
| 50 | Serial.setTxBufferSize(0); |
| 51 | Serial.begin(SERIAL_BAUD_RATE); |
| 52 | Serial.systemDebugOutput(true); |
| 53 | |
| 54 | debug_e("WELCOME to SMING! Host Tests application running."); |
| 55 | |
| 56 | spiffs_mount(); |
| 57 | fileSystemFormat(); |
| 58 | |
| 59 | registerTests(); |
| 60 | |
| 61 | #ifdef DISABLE_WIFI |
| 62 | beginTests(); |
| 63 | #else |
| 64 | WifiAccessPoint.enable(false); |
| 65 | if(netif_default == nullptr) { |
| 66 | WifiStation.enable(false); |
| 67 | beginTests(); |
| 68 | } else { |
| 69 | WifiStation.enable(true); |
| 70 | WifiStation.config(WIFI_SSID, WIFI_PWD); |
| 71 | WifiEvents.onStationGotIP([](IpAddress, IpAddress, IpAddress) { beginTests(); }); |
| 72 | } |
| 73 | #endif |
| 74 | } |
nothing calls this directly
no test coverage detected