8000 Changed timeout logic in wificlient example by hemalchevli · Pull Request #1860 · esp8266/Arduino · GitHub
[go: up one dir, main page]

Skip to content

Changed timeout logic in wificlient example #1860

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 5, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Rectified mistake in if condition
thanks to @chaeplin for finding the mistake
  • Loading branch information
hemalchevli committed Apr 5, 2016
commit e4e182a9667f89e9dbe5aef77ca56223efb9d0e8
2 changes: 1 addition & 1 deletion libraries/ESP8266WiFi/examples/WiFiClient/WiFiClient.ino
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void loop() {
"Connection: close\r\n\r\n");
unsigned long timeout = millis();
while (client.available() == 0) {
if (millis() - timeout < 5000) {
if (millis() - timeout > 5000) {
Serial.println(">>> Client Timeout !");
client.stop();
return;
Expand Down
0