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

Function startWebServer

samples/HttpServer_Bootstrap/app/application.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void startWebServer()
56{
57 server.listen(80);
58 server.paths.set("/", onIndex);
59 server.paths.set("/hello", onHello);
60 server.paths.setDefault(onFile);
61
62 Serial << endl
63 << _F("=== WEB SERVER STARTED ===") << endl
64 << WifiStation.getIP() << endl
65 << _F("==========================") << endl
66 << endl;
67}
68
69void downloadContentFiles()
70{

Callers 2

downloadContentFilesFunction · 0.70
gotIPFunction · 0.70

Calls 4

setDefaultMethod · 0.80
listenMethod · 0.45
setMethod · 0.45
getIPMethod · 0.45

Tested by

no test coverage detected