EmlaLockSafe
configuration::ConfigurationServerBase Class Reference

Base class for configuring the controller over WiFi. More...

#include <ConfigurationServerBase.h>

Inheritance diagram for configuration::ConfigurationServerBase:
configuration::ConfigurationServer configuration::WifiConfigurationServer

Protected Member Functions

 ConfigurationServerBase ()
 Construct a new Configuration Server object. More...
 
void addSpiffsFileToServer (const char *path, String contentType, const char *filename=nullptr)
 Adds the file from the SPIFFS with the filename to the webserver under the given path. More...
 

Protected Attributes

AsyncWebServer server
 The used asynchronous webserver. More...
 

Detailed Description

Base class for configuring the controller over WiFi.

Constructor & Destructor Documentation

◆ ConfigurationServerBase()

configuration::ConfigurationServerBase::ConfigurationServerBase ( )
inlineprotected

Construct a new Configuration Server object.

Member Function Documentation

◆ addSpiffsFileToServer()

void configuration::ConfigurationServerBase::addSpiffsFileToServer ( const char *  path,
String  contentType,
const char *  filename = nullptr 
)
inlineprotected

Adds the file from the SPIFFS with the filename to the webserver under the given path.

Parameters
pathpath under which the file should be reachable
contentTypetype of the data
filenameoptional, path on the SPIFFS. Must only be set if different to path

Member Data Documentation

◆ server

AsyncWebServer configuration::ConfigurationServerBase::server
protected

The used asynchronous webserver.


The documentation for this class was generated from the following file: