mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2026-05-02 04:05:14 +00:00
Compare commits
4 Commits
f8257de0dd
...
2c8eb534af
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2c8eb534af | ||
|
|
5210fab4cb | ||
|
|
49787d27f1 | ||
|
|
dfe7b46461 |
6
Makefile
6
Makefile
@@ -52,13 +52,13 @@ INCLUDES := src/core src/devices src/web src/test lib_standalone lib/* lib/semv
|
|||||||
LIBRARIES :=
|
LIBRARIES :=
|
||||||
|
|
||||||
CPPCHECK = cppcheck
|
CPPCHECK = cppcheck
|
||||||
CHECKFLAGS = -q --force --std=gnu++17
|
CHECKFLAGS = -q --force --std=gnu++20
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Languages Standard
|
# Languages Standard
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
C_STANDARD := -std=c17
|
C_STANDARD := -std=c20
|
||||||
CXX_STANDARD := -std=gnu++17
|
CXX_STANDARD := -std=gnu++20
|
||||||
|
|
||||||
#----------------------------------------------------------------------
|
#----------------------------------------------------------------------
|
||||||
# Defined Symbols
|
# Defined Symbols
|
||||||
|
|||||||
3754
src/core/system.cpp
3754
src/core/system.cpp
File diff suppressed because it is too large
Load Diff
@@ -352,7 +352,7 @@ bool WebSchedulerService::command(const char * name, const std::string & command
|
|||||||
// parse json
|
// parse json
|
||||||
JsonDocument doc;
|
JsonDocument doc;
|
||||||
if (deserializeJson(doc, cmd) == DeserializationError::Ok) {
|
if (deserializeJson(doc, cmd) == DeserializationError::Ok) {
|
||||||
HTTPClient http;
|
// HTTPClient http;
|
||||||
std::string url = doc["url"] | "";
|
std::string url = doc["url"] | "";
|
||||||
// for a GET with parameters replace commands with values
|
// for a GET with parameters replace commands with values
|
||||||
// don't search the complete url, it may contain a devicename in path
|
// don't search the complete url, it may contain a devicename in path
|
||||||
@@ -461,7 +461,7 @@ bool WebSchedulerService::command(const char * name, const std::string & command
|
|||||||
return true;
|
return true;
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
if (Helpers::toLower(url.c_str()).starts_with("http://")) {
|
if (Helpers::toLower(url.c_str()).starts_with("http://")) {
|
||||||
HTTPClient * http = new HTTPClient;
|
HTTPClient * http = new HTTPClient;
|
||||||
if (http->begin(url.c_str())) {
|
if (http->begin(url.c_str())) {
|
||||||
bool content_set = false;
|
bool content_set = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user