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

  1. #include <LightMqttSettingsService.h>
  2. LightMqttSettingsService::LightMqttSettingsService(AsyncWebServer* server, FS* fs, SecurityManager* securityManager) :
  3. _httpEndpoint(LightMqttSettings::read,
  4. LightMqttSettings::update,
  5. this,
  6. server,
  7. LIGHT_BROKER_SETTINGS_PATH,
  8. securityManager,
  9. AuthenticationPredicates::IS_AUTHENTICATED),
  10. _fsPersistence(LightMqttSettings::read, LightMqttSettings::update, this, fs, LIGHT_BROKER_SETTINGS_FILE) {
  11. }
  12. void LightMqttSettingsService::begin() {
  13. _fsPersistence.readFromFS();
  14. }