replace emsesp_stub.h

This commit is contained in:
proddy
2025-01-26 13:56:31 +01:00
parent 2620f56e0d
commit b5299719da
9 changed files with 8 additions and 53 deletions

View File

@@ -1,6 +1,6 @@
#include "APSettingsService.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
APSettingsService::APSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
: _httpEndpoint(APSettings::read, APSettings::update, this, server, AP_SETTINGS_SERVICE_PATH, securityManager)

View File

@@ -1,6 +1,6 @@
#include "MqttSettingsService.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
MqttSettingsService::MqttSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
: _httpEndpoint(MqttSettings::read, MqttSettings::update, this, server, MQTT_SETTINGS_SERVICE_PATH, securityManager)

View File

@@ -1,6 +1,6 @@
#include "MqttStatus.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
MqttStatus::MqttStatus(AsyncWebServer * server, MqttSettingsService * mqttSettingsService, SecurityManager * securityManager)
: _mqttSettingsService(mqttSettingsService) {

View File

@@ -1,6 +1,6 @@
#include "NTPSettingsService.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
NTPSettingsService::NTPSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
: _httpEndpoint(NTPSettings::read, NTPSettings::update, this, server, NTP_SETTINGS_SERVICE_PATH, securityManager)

View File

@@ -1,6 +1,6 @@
#include "NTPStatus.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
#include <array>

View File

@@ -1,6 +1,6 @@
#include "NetworkSettingsService.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
NetworkSettingsService::NetworkSettingsService(AsyncWebServer * server, FS * fs, SecurityManager * securityManager)
: _httpEndpoint(NetworkSettings::read, NetworkSettings::update, this, server, NETWORK_SETTINGS_SERVICE_PATH, securityManager)

View File

@@ -1,6 +1,6 @@
#include "NetworkStatus.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
#ifdef TASMOTA_SDK
#include "lwip/dns.h"

View File

@@ -1,6 +1,6 @@
#include "UploadFileService.h"
#include <emsesp_stub.hpp>
#include <emsesp.h>
#include <esp_app_format.h>

View File

@@ -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