mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix test compiling
This commit is contained in:
@@ -608,6 +608,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (command == "api_values") {
|
if (command == "api_values") {
|
||||||
|
#if defined(EMSESP_STANDALONE)
|
||||||
shell.printfln(F("Testing API getting values"));
|
shell.printfln(F("Testing API getting values"));
|
||||||
Mqtt::ha_enabled(false);
|
Mqtt::ha_enabled(false);
|
||||||
Mqtt::nested_format(1);
|
Mqtt::nested_format(1);
|
||||||
@@ -626,6 +627,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
|
|||||||
EMSESP::webAPIService.webAPIService_get(&request);
|
EMSESP::webAPIService.webAPIService_get(&request);
|
||||||
request.url("/api/boiler/values");
|
request.url("/api/boiler/values");
|
||||||
EMSESP::webAPIService.webAPIService_get(&request);
|
EMSESP::webAPIService.webAPIService_get(&request);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (command == "mqtt_post") {
|
if (command == "mqtt_post") {
|
||||||
|
|||||||
Reference in New Issue
Block a user