Skip to content

Commit 2323864

Browse files
committed
Cleanup
1 parent ac5f6cd commit 2323864

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

platformio.ini

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[platformio]
2-
default_envs = lolin32
2+
default_envs = lolin32-FormServer
33

4-
[env:lolin32]
4+
[env:lolin32-FormServer-minimodule]
55
framework = arduino
66
platform = espressif32@>=1.11
77
board = lolin32
@@ -12,4 +12,39 @@ src_filter = +<*> +<../examples/FormServer/>
1212
debug_tool = minimodule
1313
upload_protocol = minimodule
1414
monitor_speed = 115200
15+
upload_speed = 115200
16+
17+
[env:lolin32-FormServer]
18+
framework = arduino
19+
platform = espressif32@>=1.11
20+
board = lolin32
21+
lib_ldf_mode = deep+
22+
lib_deps = https://github.com/jackjansen/esp32_https_server.git#bodyparser
23+
build_flags = -DHTTPS_LOGLEVEL=4 -DHTTPS_REQUEST_MAX_REQUEST_LENGTH=800
24+
src_filter = +<*> +<../examples/FormServer/>
25+
monitor_speed = 115200
26+
upload_speed = 115200
27+
28+
[env:lolin32-HelloServer-minimodule]
29+
framework = arduino
30+
platform = espressif32@>=1.11
31+
board = lolin32
32+
lib_ldf_mode = deep+
33+
lib_deps = https://github.com/jackjansen/esp32_https_server.git#bodyparser
34+
build_flags = -DHTTPS_LOGLEVEL=4 -DHTTPS_REQUEST_MAX_REQUEST_LENGTH=800
35+
src_filter = +<*> +<../examples/HelloServer/>
36+
debug_tool = minimodule
37+
upload_protocol = minimodule
38+
monitor_speed = 115200
39+
upload_speed = 115200
40+
41+
[env:lolin32-HelloServer]
42+
framework = arduino
43+
platform = espressif32@>=1.11
44+
board = lolin32
45+
lib_ldf_mode = deep+
46+
lib_deps = https://github.com/jackjansen/esp32_https_server.git#bodyparser
47+
build_flags = -DHTTPS_LOGLEVEL=4 -DHTTPS_REQUEST_MAX_REQUEST_LENGTH=800
48+
src_filter = +<*> +<../examples/HelloServer/>
49+
monitor_speed = 115200
1550
upload_speed = 115200

src/ESPWebServer.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ bool ESPWebServer::authenticate(const char * username, const char * password) {
103103

104104
void ESPWebServer::requestAuthentication(HTTPAuthMethod mode, const char* realm, const String& authFailMsg) {
105105
if (realm == NULL) realm = "Login Required";
106-
HTTPS_LOGD("requestAuthentication(%d, %s)\n", mode, realm);
107106
if (mode == BASIC_AUTH) {
108107
std::string authArg = "Basic realm=\"";
109108
authArg += realm;
@@ -215,13 +214,11 @@ String ESPWebServer::arg(String name) {
215214
buffer[readLength] = 0;
216215
rv += buffer;
217216
}
218-
HTTPS_LOGD("arg(\"plain\") returns %d bytes", rv.length());
219217
return rv;
220218
}
221219
}
222220
std::string value;
223221
_activeParams->getQueryParameter(std::string(name.c_str()), value);
224-
HTTPS_LOGD("arg(%s) returns %s", name.c_str(), value.c_str());
225222
return String(value.c_str());
226223
}
227224

@@ -249,12 +246,11 @@ int ESPWebServer::args() {
249246

250247
bool ESPWebServer::hasArg(String name) {
251248
bool rv = _activeParams->isQueryParameterSet(std::string(name.c_str()));
252-
HTTPS_LOGD("hasArg(%s) returns %d", name.c_str(), (int)rv);
253249
return rv;
254250
}
255251

256252
void ESPWebServer::collectHeaders(const char* headerKeys[], const size_t headerKeysCount) {
257-
HTTPS_LOGW("collectHeaders() not implemented, but probably not needed");
253+
HTTPS_LOGE("collectHeaders() not implemented");
258254
}
259255

260256
String ESPWebServer::header(String name) {
@@ -367,7 +363,7 @@ void ESPWebServer::setContentLength(const size_t contentLength) {
367363

368364
void ESPWebServer::sendHeader(const String& name, const String& value, bool first) {
369365
if (first) {
370-
HTTPS_LOGW("sendHeader(..., first=true) not implemented");
366+
HTTPS_LOGE("sendHeader(..., first=true) not implemented");
371367
}
372368
_activeResponse->setHeader(name.c_str(), value.c_str());
373369
}

0 commit comments

Comments
 (0)