diff --git a/src/core/shuntingYard.cpp b/src/core/shuntingYard.cpp index 3d9e8a1a3..aacf23ead 100644 --- a/src/core/shuntingYard.cpp +++ b/src/core/shuntingYard.cpp @@ -728,8 +728,10 @@ std::string compute(const std::string & expr) { } if (url.substr(0, 4) == "http") { // match http and https HTTPClient * http = new HTTPClient; +#ifndef EMSESP_STANDALONE http->setConnectTimeout(10000); http->setTimeout(10000); +#endif if (http->begin(url.c_str())) { int httpResult = 0; for (JsonPair p : doc[header_s].as()) { diff --git a/src/web/WebSchedulerService.cpp b/src/web/WebSchedulerService.cpp index 0569ecd69..b66d0f6ab 100644 --- a/src/web/WebSchedulerService.cpp +++ b/src/web/WebSchedulerService.cpp @@ -355,8 +355,10 @@ bool WebSchedulerService::command(const char * name, const std::string & command JsonDocument doc; if (deserializeJson(doc, cmd) == DeserializationError::Ok) { HTTPClient * http = new HTTPClient; +#ifndef EMSESP_STANDALONE http->setConnectTimeout(10000); http->setTimeout(10000); +#endif std::string url = doc["url"] | ""; // for a GET with parameters replace commands with values // don't search the complete url, it may contain a devicename in path