| 197 | } |
| 198 | |
| 199 | void startFTP() |
| 200 | { |
| 201 | if(!fileExist("index.html")) |
| 202 | fileSetContent("index.html", |
| 203 | F("<h3>Please connect to FTP and upload files from folder 'web/build' (details in code)</h3>")); |
| 204 | |
| 205 | // Start FTP server |
| 206 | ftp.listen(21); |
| 207 | ftp.addUser("me", "123"); // FTP account |
| 208 | } |
| 209 | |
| 210 | // Will be called when system initialization was completed |
| 211 | void startServers() |
no test coverage detected