-
-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* switched AsyncWebServer library * Ethernet version now uses same AsyncWebServer library as Wifi version * fix languange of `/history` * fix RSSI on `/history` #1463
- Loading branch information
Showing
11 changed files
with
105 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp | ||
index 12be5f8..cffeed7 100644 | ||
index 6e88da9..09359c3 100644 | ||
--- a/src/AsyncWebSocket.cpp | ||
+++ b/src/AsyncWebSocket.cpp | ||
@@ -737,7 +737,7 @@ void AsyncWebSocketClient::binary(const __FlashStringHelper *data, size_t len) | ||
IPAddress AsyncWebSocketClient::remoteIP() const | ||
{ | ||
if (!_client) | ||
- return IPAddress(0U); | ||
+ return IPAddress(); | ||
@@ -827,7 +827,7 @@ void AsyncWebSocketClient::binary(AsyncWebSocketMessageBuffer * buffer) | ||
|
||
IPAddress AsyncWebSocketClient::remoteIP() { | ||
if(!_client) { | ||
- return IPAddress((uint32_t)0); | ||
+ return IPAddress(); | ||
} | ||
return _client->remoteIP(); | ||
} | ||
diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp | ||
index 22a549f..e0b36b3 100644 | ||
index a22e991..babef18 100644 | ||
--- a/src/WebResponses.cpp | ||
+++ b/src/WebResponses.cpp | ||
@@ -318,7 +318,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest *request, size_t len, u | ||
@@ -317,7 +317,7 @@ size_t AsyncAbstractResponse::_ack(AsyncWebServerRequest *request, size_t len, u | ||
free(buf); | ||
return 0; | ||
} | ||
- outLen = sprintf_P((char*)buf+headLen, PSTR("%x"), readLen) + headLen; | ||
+ outLen = sprintf_P((char*)buf+headLen, PSTR("%04x"), readLen) + headLen; | ||
- outLen = sprintf((char*)buf+headLen, "%x", readLen) + headLen; | ||
+ outLen = sprintf((char*)buf+headLen, "%04x", readLen) + headLen; | ||
while(outLen < headLen + 4) buf[outLen++] = ' '; | ||
buf[outLen++] = '\r'; | ||
buf[outLen++] = '\n'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ extra_scripts = | |
pre:../scripts/reduceGxEPD2.py | ||
|
||
lib_deps = | ||
https://github.com/yubox-node-org/ESPAsyncWebServer | ||
https://github.com/esphome/ESPAsyncWebServer @ ^3.1.0 | ||
https://github.com/nRF24/RF24 @ 1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.6.0 | ||
|
@@ -216,7 +216,7 @@ monitor_filters = | |
platform = espressif32 | ||
board = lolin_d32 | ||
build_flags = ${env.build_flags} | ||
-D ETHERNET | ||
-DETHERNET | ||
-DRELEASE | ||
-DUSE_HSPI_FOR_EPD | ||
-DENABLE_MQTT | ||
|
@@ -241,7 +241,7 @@ monitor_filters = | |
platform = espressif32 | ||
board = lolin_d32 | ||
build_flags = ${env.build_flags} | ||
-D ETHERNET | ||
-DETHERNET | ||
-DRELEASE | ||
-DUSE_HSPI_FOR_EPD | ||
-DLANG_DE | ||
|
@@ -436,16 +436,16 @@ monitor_filters = | |
[env:opendtufusion-ethernet] | ||
platform = [email protected] | ||
board = esp32-s3-devkitc-1 | ||
lib_deps = | ||
khoih-prog/AsyncWebServer_ESP32_W5500 | ||
khoih-prog/AsyncUDP_ESP32_W5500 | ||
https://github.com/nrf24/RF24 @ ^1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.6.0 | ||
bblanchon/ArduinoJson @ ^6.21.3 | ||
https://github.com/JChristensen/Timezone @ ^1.2.4 | ||
olikraus/U8g2 @ ^2.35.9 | ||
https://github.com/zinggjm/GxEPD2#1.5.3 | ||
#lib_deps = | ||
# khoih-prog/AsyncWebServer_ESP32_W5500 | ||
# khoih-prog/AsyncUDP_ESP32_W5500 | ||
# https://github.com/nrf24/RF24 @ ^1.4.8 | ||
# paulstoffregen/Time @ ^1.6.1 | ||
# https://github.com/bertmelis/espMqttClient#v1.6.0 | ||
# bblanchon/ArduinoJson @ ^6.21.3 | ||
# https://github.com/JChristensen/Timezone @ ^1.2.4 | ||
# olikraus/U8g2 @ ^2.35.9 | ||
# https://github.com/zinggjm/GxEPD2#1.5.3 | ||
upload_protocol = esp-builtin | ||
build_flags = ${env.build_flags} | ||
-DETHERNET | ||
|
@@ -481,16 +481,16 @@ monitor_filters = | |
[env:opendtufusion-ethernet-de] | ||
platform = [email protected] | ||
board = esp32-s3-devkitc-1 | ||
lib_deps = | ||
khoih-prog/AsyncWebServer_ESP32_W5500 | ||
khoih-prog/AsyncUDP_ESP32_W5500 | ||
https://github.com/nrf24/RF24 @ ^1.4.8 | ||
paulstoffregen/Time @ ^1.6.1 | ||
https://github.com/bertmelis/espMqttClient#v1.6.0 | ||
bblanchon/ArduinoJson @ ^6.21.3 | ||
https://github.com/JChristensen/Timezone @ ^1.2.4 | ||
olikraus/U8g2 @ ^2.35.9 | ||
https://github.com/zinggjm/GxEPD2#1.5.3 | ||
#lib_deps = | ||
# khoih-prog/AsyncWebServer_ESP32_W5500 | ||
# khoih-prog/AsyncUDP_ESP32_W5500 | ||
# https://github.com/nrf24/RF24 @ ^1.4.8 | ||
# paulstoffregen/Time @ ^1.6.1 | ||
# https://github.com/bertmelis/espMqttClient#v1.6.0 | ||
# bblanchon/ArduinoJson @ ^6.21.3 | ||
# https://github.com/JChristensen/Timezone @ ^1.2.4 | ||
# olikraus/U8g2 @ ^2.35.9 | ||
# https://github.com/zinggjm/GxEPD2#1.5.3 | ||
upload_protocol = esp-builtin | ||
build_flags = ${env.build_flags} | ||
-DETHERNET | ||
|
Oops, something went wrong.