Class implementing all functions to configure the Controller.
More...
#include <ConfigurationServer.h>
|
| void | onGetLastValues (AsyncWebServerRequest *request) |
| | Event handler called if the current configuration should be sent to the browser. More...
|
| |
| void | onSaveData (AsyncWebServerRequest *request) |
| | Event handler called if new configuration data should be saved. More...
|
| |
| void | onGenerateNewKey (AsyncWebServerRequest *request) |
| | Event handler called if a new emergency key should be generated. More...
|
| |
| void | onRemoteControlWebSocketEvent (AsyncWebSocketClient *client, AwsEventType type, void *arg, uint8_t *data, size_t len) |
| | Event handler for the WebSocket connection which is used to remote control the safe. More...
|
| |
| | 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...
|
| |
Class implementing all functions to configure the Controller.
◆ ConfigurationServer()
| configuration::ConfigurationServer::ConfigurationServer |
( |
LiquidCrystal_PCF8574 & |
display, |
|
|
RotaryEncoder & |
encoder |
|
) |
| |
|
inlineprivate |
Construct a new Configuration Server object.
- Parameters
-
| display | Reference to the display |
| encoder | Reference to the encoder |
◆ begin()
| static ConfigurationServer & configuration::ConfigurationServer::begin |
( |
LiquidCrystal_PCF8574 & |
display, |
|
|
RotaryEncoder & |
encoder |
|
) |
| |
|
inlinestatic |
Create a new Configuration server.
- Parameters
-
| display | Reference to the display |
| encoder | Reference to the encoder |
◆ getInstance()
Function providing the instance for the singleton.
◆ getParam()
| static String configuration::ConfigurationServer::getParam |
( |
AsyncWebServerRequest * |
request, |
|
|
const String & |
paramName |
|
) |
| |
|
inlinestaticprotected |
Extract a passed parameter value from a HTTP GET request.
◆ getSingleton()
Get the Singleton object.
◆ isConfigurationAllowed()
| static bool configuration::ConfigurationServer::isConfigurationAllowed |
( |
| ) |
|
|
inlinestaticprotected |
Quick check if the ConfigurationServerView is active --> changing the configuration is allowed.
◆ onGenerateNewKey()
| void configuration::ConfigurationServer::onGenerateNewKey |
( |
AsyncWebServerRequest * |
request | ) |
|
|
inlineprotected |
Event handler called if a new emergency key should be generated.
- Parameters
-
| request | the request received from the browser |
◆ onGetLastValues()
| void configuration::ConfigurationServer::onGetLastValues |
( |
AsyncWebServerRequest * |
request | ) |
|
|
inlineprotected |
Event handler called if the current configuration should be sent to the browser.
- Parameters
-
| request | the request received from the browser |
◆ onRemoteControlWebSocketEvent()
| void configuration::ConfigurationServer::onRemoteControlWebSocketEvent |
( |
AsyncWebSocketClient * |
client, |
|
|
AwsEventType |
type, |
|
|
void * |
arg, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inlineprotected |
Event handler for the WebSocket connection which is used to remote control the safe.
- Parameters
-
| client | the client which triggered the event |
| type | the event type |
| arg | the information about received data |
| data | the received data |
| len | the length of the received data |
◆ onSaveData()
| void configuration::ConfigurationServer::onSaveData |
( |
AsyncWebServerRequest * |
request | ) |
|
|
inlineprotected |
Event handler called if new configuration data should be saved.
- Parameters
-
| request | the request received from the browser |
◆ display
| LiquidCrystal_PCF8574& configuration::ConfigurationServer::display |
|
protected |
Reference to the display.
◆ encoder
| RotaryEncoder& configuration::ConfigurationServer::encoder |
|
protected |
◆ remoteControlWebSocket
| AsyncWebSocket configuration::ConfigurationServer::remoteControlWebSocket |
|
protected |
Websocket to remote control the display.
The documentation for this class was generated from the following file: