replace restart/format endpoints with system calls

This commit is contained in:
proddy
2024-08-31 16:09:22 +02:00
parent 55a55cbfca
commit 0753fee385
7 changed files with 1 additions and 110 deletions

View File

@@ -4,13 +4,11 @@
#include "APSettingsService.h"
#include "APStatus.h"
#include "AuthenticationService.h"
#include "FactoryResetService.h"
#include "MqttSettingsService.h"
#include "MqttStatus.h"
#include "NTPSettingsService.h"
#include "NTPStatus.h"
#include "UploadFileService.h"
#include "RestartService.h"
#include "SecuritySettingsService.h"
#include "WiFiScanner.h"
#include "NetworkSettingsService.h"
@@ -68,12 +66,6 @@ class ESP8266React {
return _apSettingsService.getAPNetworkStatus() == APNetworkStatus::ACTIVE;
}
#ifndef EMSESP_STANDALONE
void factoryReset() {
_factoryResetService.factoryReset();
}
#endif
private:
SecuritySettingsService _securitySettingsService;
NetworkSettingsService _networkSettingsService;
@@ -87,8 +79,6 @@ class ESP8266React {
MqttSettingsService _mqttSettingsService;
MqttStatus _mqttStatus;
AuthenticationService _authenticationService;
RestartService _restartService;
FactoryResetService _factoryResetService;
};
#endif