| 95 | } |
| 96 | |
| 97 | void startFTP() |
| 98 | { |
| 99 | if(!fileExist("index.html")) |
| 100 | fileSetContent("index.html", |
| 101 | F("<h3>Please connect to FTP and upload files from folder 'web/build' (details in code)</h3>")); |
| 102 | |
| 103 | // Start FTP server |
| 104 | ftp.listen(21); |
| 105 | ftp.addUser("me", "123"); // FTP account |
| 106 | } |
| 107 | |
| 108 | void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway) |
| 109 | { |