mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
replace emsesp_stub.h
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include "APSettingsService.h"
|
#include "APSettingsService.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
APSettingsService::APSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
APSettingsService::APSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
||||||
: _httpEndpoint(APSettings::read, APSettings::update, this, server, AP_SETTINGS_SERVICE_PATH, securityManager)
|
: _httpEndpoint(APSettings::read, APSettings::update, this, server, AP_SETTINGS_SERVICE_PATH, securityManager)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "MqttSettingsService.h"
|
#include "MqttSettingsService.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
MqttSettingsService::MqttSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
MqttSettingsService::MqttSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
||||||
: _httpEndpoint(MqttSettings::read, MqttSettings::update, this, server, MQTT_SETTINGS_SERVICE_PATH, securityManager)
|
: _httpEndpoint(MqttSettings::read, MqttSettings::update, this, server, MQTT_SETTINGS_SERVICE_PATH, securityManager)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "MqttStatus.h"
|
#include "MqttStatus.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
MqttStatus::MqttStatus(AsyncWebServer * server, MqttSettingsService * mqttSettingsService, SecurityManager * securityManager)
|
MqttStatus::MqttStatus(AsyncWebServer * server, MqttSettingsService * mqttSettingsService, SecurityManager * securityManager)
|
||||||
: _mqttSettingsService(mqttSettingsService) {
|
: _mqttSettingsService(mqttSettingsService) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "NTPSettingsService.h"
|
#include "NTPSettingsService.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
NTPSettingsService::NTPSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
NTPSettingsService::NTPSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
||||||
: _httpEndpoint(NTPSettings::read, NTPSettings::update, this, server, NTP_SETTINGS_SERVICE_PATH, securityManager)
|
: _httpEndpoint(NTPSettings::read, NTPSettings::update, this, server, NTP_SETTINGS_SERVICE_PATH, securityManager)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "NTPStatus.h"
|
#include "NTPStatus.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
#include <array>
|
#include <array>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "NetworkSettingsService.h"
|
#include "NetworkSettingsService.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
NetworkSettingsService::NetworkSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
NetworkSettingsService::NetworkSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
|
||||||
: _httpEndpoint(NetworkSettings::read, NetworkSettings::update, this, server, NETWORK_SETTINGS_SERVICE_PATH, securityManager)
|
: _httpEndpoint(NetworkSettings::read, NetworkSettings::update, this, server, NETWORK_SETTINGS_SERVICE_PATH, securityManager)
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "NetworkStatus.h"
|
#include "NetworkStatus.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
#ifdef TASMOTA_SDK
|
#ifdef TASMOTA_SDK
|
||||||
#include "lwip/dns.h"
|
#include "lwip/dns.h"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "UploadFileService.h"
|
#include "UploadFileService.h"
|
||||||
|
|
||||||
#include <emsesp_stub.hpp>
|
#include <emsesp.h>
|
||||||
|
|
||||||
#include <esp_app_format.h>
|
#include <esp_app_format.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,45 +0,0 @@
|
|||||||
/*
|
|
||||||
* EMS-ESP - https://github.com/emsesp/EMS-ESP
|
|
||||||
* Copyright 2020-2024 emsesp.org - proddy, MichaelDvP
|
|
||||||
*
|
|
||||||
* This program is free software: you can redistribute it and/or modify
|
|
||||||
* it under the terms of the GNU General Public License as published by
|
|
||||||
* the Free Software Foundation, either version 3 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
||||||
*/
|
|
||||||
#ifndef EMSESP_EMSESP_STUB_H
|
|
||||||
#define EMSESP_EMSESP_STUB_H
|
|
||||||
|
|
||||||
#include "system.h"
|
|
||||||
#include "mqtt.h"
|
|
||||||
#include "temperaturesensor.h"
|
|
||||||
// #include "../version.h"
|
|
||||||
#include "ESP32React/ESP32React.h"
|
|
||||||
|
|
||||||
#include <uuid/log.h>
|
|
||||||
|
|
||||||
using uuid::log::Logger;
|
|
||||||
|
|
||||||
// forward declarator
|
|
||||||
// used to bind EMS-ESP functions to external frameworks
|
|
||||||
namespace emsesp {
|
|
||||||
class EMSESP {
|
|
||||||
public:
|
|
||||||
static Mqtt mqtt_;
|
|
||||||
static System system_;
|
|
||||||
static TemperatureSensor temperaturesensor_;
|
|
||||||
static Logger logger();
|
|
||||||
static ESP32React esp32React;
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace emsesp
|
|
||||||
|
|
||||||
#endif
|
|
||||||
Reference in New Issue
Block a user