| 114 | } // namespace |
| 115 | |
| 116 | void init() |
| 117 | { |
| 118 | spiffs_mount(); // Mount file system, in order to work with files |
| 119 | |
| 120 | Serial.begin(SERIAL_BAUD_RATE); // 115200 by default |
| 121 | Serial.systemDebugOutput(true); // Enable debug output to serial |
| 122 | |
| 123 | WifiStation.enable(true); |
| 124 | WifiStation.config(WIFI_SSID, WIFI_PWD); |
| 125 | WifiAccessPoint.enable(false); |
| 126 | |
| 127 | for(auto pin : inputs) { |
| 128 | pinMode(pin, INPUT); |
| 129 | } |
| 130 | |
| 131 | // Run our method when station was connected to AP |
| 132 | WifiEvents.onStationGotIP(gotIP); |
| 133 | } |
nothing calls this directly
no test coverage detected