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

Function startWebServer

samples/HttpServer_AJAX/app/application.cpp:82–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void startWebServer()
83{
84 server.listen(80);
85 server.paths.set("/", onIndex);
86 server.paths.set("/ajax/input", onAjaxInput);
87 server.paths.set("/ajax/frequency", onAjaxFrequency);
88 server.paths.setDefault(onFile);
89
90 Serial << endl
91 << _F("=== WEB SERVER STARTED ===") << endl
92 << WifiStation.getIP() << endl
93 << _F("==========================") << endl
94 << endl;
95}
96
97void startFTP()
98{

Callers 1

gotIPFunction · 0.70

Calls 4

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

Tested by

no test coverage detected