a1f4e57a21
* Update back end to add MQTT and WebSocket support * Update demo project to demonstrate MQTT and WebSockets * Update documentation to describe newly added and modified functionallity * Introduce separate MQTT pub/sub, HTTP get/post and WebSocket rx/tx classes * Significant reanaming - more accurate class names * Use PROGMEM_WWW as default * Update README documenting PROGMEM_WWW as default * Update README with API changes
17 lines
648 B
C++
17 lines
648 B
C++
#include <LightMqttSettingsService.h>
|
|
|
|
LightMqttSettingsService::LightMqttSettingsService(AsyncWebServer* server, FS* fs, SecurityManager* securityManager) :
|
|
_httpEndpoint(LightMqttSettings::serialize,
|
|
LightMqttSettings::deserialize,
|
|
this,
|
|
server,
|
|
LIGHT_BROKER_SETTINGS_PATH,
|
|
securityManager,
|
|
AuthenticationPredicates::IS_AUTHENTICATED),
|
|
_fsPersistence(LightMqttSettings::serialize, LightMqttSettings::deserialize, this, fs, LIGHT_BROKER_SETTINGS_FILE) {
|
|
}
|
|
|
|
void LightMqttSettingsService::begin() {
|
|
_fsPersistence.readFromFS();
|
|
}
|