mirror of
https://gitlab.com/wirelos/sprocket-lib.git
synced 2025-12-16 05:24:30 +01:00
basic web config
This commit is contained in:
@@ -25,6 +25,8 @@ class WebServerPlugin : public Plugin {
|
||||
//connectUpdateNetwork(network);
|
||||
net = static_cast<MeshNet*>(network);
|
||||
server->serveStatic(config.contextPath, SPIFFS, config.docRoot).setDefaultFile(config.defaultFile);
|
||||
// TODO add auth if configured
|
||||
// server->setAuthentication("user", "pass");
|
||||
server->begin();
|
||||
Serial.println("WebServer activated");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user