MCPcopy Create free account
hub / github.com/SmingHub/Sming / startFTP

Function startFTP

samples/HttpServer_ConfigNetwork/app/application.cpp:199–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void 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
211void startServers()

Callers 1

startServersFunction · 0.70

Calls 5

fileExistFunction · 0.85
fileSetContentFunction · 0.85
addUserMethod · 0.80
FFunction · 0.50
listenMethod · 0.45

Tested by

no test coverage detected