diff --git a/arduino/libraries/WiFi/src/WiFiClient.cpp b/arduino/libraries/WiFi/src/WiFiClient.cpp index b4c43048..aa482657 100644 --- a/arduino/libraries/WiFi/src/WiFiClient.cpp +++ b/arduino/libraries/WiFi/src/WiFiClient.cpp @@ -87,15 +87,14 @@ size_t WiFiClient::write(const uint8_t *buf, size_t size) return 0; } - int result = lwip_send_r(_socket, (void*)buf, size, MSG_DONTWAIT); + int result = lwip_send_r(_socket, (void*)buf, size, MSG_PEEK); if (result < 0) { - lwip_close_r(_socket); - _socket = -1; return 0; } return result; + } int WiFiClient::available() diff --git a/main/CommandHandler.cpp b/main/CommandHandler.cpp index 0bd7a8d7..7d2c3f96 100644 --- a/main/CommandHandler.cpp +++ b/main/CommandHandler.cpp @@ -36,7 +36,7 @@ #include "esp_log.h" -const char FIRMWARE_VERSION[6] = "1.4.2"; +const char FIRMWARE_VERSION[6] = "1.4.3"; /*IPAddress*/uint32_t resolvedHostname;