Skip to content

Commit

Permalink
Update TCP parse loop to current paradigm
Browse files Browse the repository at this point in the history
Fixes #140
  • Loading branch information
marcelstoer committed Oct 18, 2018
1 parent 2d052b8 commit 038c4da
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@
"espressif8266",
"espressif32"
],
"version": "1.6.2"
"version": "1.6.3"
}
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=ESP8266 Weather Station
version=1.6.2
version=1.6.3
author=ThingPulse
maintainer=ThingPulse <[email protected]>
sentence=ESP8266 based internet connected Weather Station
Expand Down
2 changes: 1 addition & 1 deletion src/OpenWeatherMapCurrent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void OpenWeatherMapCurrent::doUpdate(OpenWeatherMapCurrentData *data, String url

WiFiClient * client = http.getStreamPtr();

while(client->connected()) {
while(client->connected() || client->available()) {
while((size = client->available()) > 0) {
if ((millis() - lost_do) > lostTest) {
Serial.println ("lost in client with a timeout");
Expand Down
2 changes: 1 addition & 1 deletion src/OpenWeatherMapForecast.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ uint8_t OpenWeatherMapForecast::doUpdate(OpenWeatherMapForecastData *data, Strin

WiFiClient * client = http.getStreamPtr();

while(client->connected()) {
while(client->connected() || client->available()) {
while((size = client->available()) > 0) {
if ((millis() - lost_do) > lostTest) {
Serial.println ("lost in client with a timeout");
Expand Down

0 comments on commit 038c4da

Please sign in to comment.