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

Function startFTP

samples/HttpServer_AJAX/app/application.cpp:97–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

95}
96
97void 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
108void gotIP(IpAddress ip, IpAddress netmask, IpAddress gateway)
109{

Callers 1

gotIPFunction · 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