Fork of the excellent esp8266-react - https://github.com/rjwats/esp8266-react
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
628 B
16 lines
628 B
#include <LightMqttSettingsService.h>
|
|
|
|
LightMqttSettingsService::LightMqttSettingsService(AsyncWebServer* server, FS* fs, SecurityManager* securityManager) :
|
|
_httpEndpoint(LightMqttSettings::read,
|
|
LightMqttSettings::update,
|
|
this,
|
|
server,
|
|
LIGHT_BROKER_SETTINGS_PATH,
|
|
securityManager,
|
|
AuthenticationPredicates::IS_AUTHENTICATED),
|
|
_fsPersistence(LightMqttSettings::read, LightMqttSettings::update, this, fs, LIGHT_BROKER_SETTINGS_FILE) {
|
|
}
|
|
|
|
void LightMqttSettingsService::begin() {
|
|
_fsPersistence.readFromFS();
|
|
}
|