some standalone compile updates for testing

This commit is contained in:
Proddy
2023-12-27 22:41:19 +01:00
parent 23d4f608c5
commit 778bbe3b81
10 changed files with 600 additions and 103 deletions

View File

@@ -1,7 +1,7 @@
/*
* EMS-ESP - https://github.com/emsesp/EMS-ESP
* Copyright 2020-2023 Paul Derbyshire
*
*
* 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
@@ -22,7 +22,9 @@ static_assert(uuid::thread_safe, "uuid-common must be thread-safe");
static_assert(uuid::log::thread_safe, "uuid-log must be thread-safe");
static_assert(uuid::console::thread_safe, "uuid-console must be thread-safe");
#ifndef EMSESP_STANDALONE
#include <WWWData.h>
#endif
namespace emsesp {
@@ -1439,7 +1441,9 @@ void EMSESP::setupWeb() {
DefaultHeaders::Instance().addHeader("Server", "EMS-ESP");
#ifndef EMSESP_STANDALONE
WWWData::registerRoutes(handler); // add webServer.on() endpoints from the generated web code
#endif
esp8266React.registerURI(); // load up the core system web endpoints

View File

@@ -846,9 +846,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
run_test("boiler");
run_test("thermostat");
PsychicRequest request;
DynamicJsonDocument doc(2000);
JsonVariant json;
PsychicRequest request;
DynamicJsonDocument doc(2000);
JsonVariant json;
request.method(HTTP_GET);
request.url("/api/boiler/values");
@@ -915,9 +915,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
run_test("boiler");
run_test("thermostat");
PsychicRequest requestX;
DynamicJsonDocument docX(2000);
JsonVariant jsonX;
PsychicRequest requestX;
DynamicJsonDocument docX(2000);
JsonVariant jsonX;
requestX.method(HTTP_GET);