mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
remove unused comments
This commit is contained in:
@@ -10,7 +10,6 @@
|
|||||||
#include <SecurityManager.h>
|
#include <SecurityManager.h>
|
||||||
#include <APSettingsService.h>
|
#include <APSettingsService.h>
|
||||||
|
|
||||||
// #define MAX_AP_STATUS_SIZE 1024
|
|
||||||
#define AP_STATUS_SERVICE_PATH "/rest/apStatus"
|
#define AP_STATUS_SERVICE_PATH "/rest/apStatus"
|
||||||
|
|
||||||
class APStatus {
|
class APStatus {
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ class HttpEndpoint {
|
|||||||
request->send(400); // error
|
request->send(400); // error
|
||||||
return;
|
return;
|
||||||
} else if (outcome == StateUpdateResult::CHANGED_RESTART) {
|
} else if (outcome == StateUpdateResult::CHANGED_RESTART) {
|
||||||
// TODO check if works
|
|
||||||
request->send(205); // reboot required
|
request->send(205); // reboot required
|
||||||
return;
|
return;
|
||||||
} else if (outcome == StateUpdateResult::CHANGED) {
|
} else if (outcome == StateUpdateResult::CHANGED) {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@
|
|||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#include <SecurityManager.h>
|
#include <SecurityManager.h>
|
||||||
|
|
||||||
// #define MAX_MQTT_STATUS_SIZE 1024
|
|
||||||
#define MQTT_STATUS_SERVICE_PATH "/rest/mqttStatus"
|
#define MQTT_STATUS_SERVICE_PATH "/rest/mqttStatus"
|
||||||
|
|
||||||
class MqttStatus {
|
class MqttStatus {
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
#include <SecurityManager.h>
|
#include <SecurityManager.h>
|
||||||
#include <uuid/common.h>
|
#include <uuid/common.h>
|
||||||
|
|
||||||
// #define MAX_NTP_STATUS_SIZE 1024
|
|
||||||
#define NTP_STATUS_SERVICE_PATH "/rest/ntpStatus"
|
#define NTP_STATUS_SERVICE_PATH "/rest/ntpStatus"
|
||||||
|
|
||||||
class NTPStatus {
|
class NTPStatus {
|
||||||
|
|||||||
@@ -18,8 +18,6 @@
|
|||||||
#define AUTHORIZATION_HEADER_PREFIX "Bearer "
|
#define AUTHORIZATION_HEADER_PREFIX "Bearer "
|
||||||
#define AUTHORIZATION_HEADER_PREFIX_LEN 7
|
#define AUTHORIZATION_HEADER_PREFIX_LEN 7
|
||||||
|
|
||||||
// #define MAX_JWT_SIZE 128
|
|
||||||
|
|
||||||
class User {
|
class User {
|
||||||
public:
|
public:
|
||||||
String username;
|
String username;
|
||||||
@@ -70,7 +68,6 @@ class AuthenticationPredicates {
|
|||||||
|
|
||||||
class SecurityManager {
|
class SecurityManager {
|
||||||
public:
|
public:
|
||||||
#if FT_ENABLED(FT_SECURITY)
|
|
||||||
/*
|
/*
|
||||||
* Authenticate, returning the user if found
|
* Authenticate, returning the user if found
|
||||||
*/
|
*/
|
||||||
@@ -81,8 +78,6 @@ class SecurityManager {
|
|||||||
*/
|
*/
|
||||||
virtual String generateJWT(User * user) = 0;
|
virtual String generateJWT(User * user) = 0;
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Check the request header for the Authorization token
|
* Check the request header for the Authorization token
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -10,7 +10,6 @@
|
|||||||
#include <ESPAsyncWebServer.h>
|
#include <ESPAsyncWebServer.h>
|
||||||
#include <SecurityManager.h>
|
#include <SecurityManager.h>
|
||||||
|
|
||||||
// #define MAX_ESP_STATUS_SIZE 1024
|
|
||||||
#define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
|
#define SYSTEM_STATUS_SERVICE_PATH "/rest/systemStatus"
|
||||||
|
|
||||||
class SystemStatus {
|
class SystemStatus {
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
#define SCAN_NETWORKS_SERVICE_PATH "/rest/scanNetworks"
|
#define SCAN_NETWORKS_SERVICE_PATH "/rest/scanNetworks"
|
||||||
#define LIST_NETWORKS_SERVICE_PATH "/rest/listNetworks"
|
#define LIST_NETWORKS_SERVICE_PATH "/rest/listNetworks"
|
||||||
|
|
||||||
// #define MAX_WIFI_SCANNER_SIZE 1024
|
|
||||||
|
|
||||||
class WiFiScanner {
|
class WiFiScanner {
|
||||||
public:
|
public:
|
||||||
WiFiScanner(AsyncWebServer * server, SecurityManager * securityManager);
|
WiFiScanner(AsyncWebServer * server, SecurityManager * securityManager);
|
||||||
|
|||||||
Reference in New Issue
Block a user