Skip to content

ESP8266WiFi: made connected() return true if data is available #126

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 1 commit into from
Apr 27, 2015

Conversation

bobvanderlinden
Copy link
Contributor

I found an slight incompatibility with the Arduino documentation for WiFiClient::connected(): http://www.arduino.cc/en/Reference/WiFiClientConnected

WiFiClient::connected() should return true if the connection is disconnected, but there is still data available.
Before this patch WiFiClient::connected() returned true when the connection was still there. I found this more intuitive, but the documentation sadly said otherwise.

WiFiClient::connected() should return true if the connection is disconnected, but there is still data available. This is specified in the Arduino docs: http://www.arduino.cc/en/Reference/WiFiClientConnected
igrr added a commit that referenced this pull request Apr 27, 2015
ESP8266WiFi: made connected() return true if data is available
@igrr igrr merged commit a5f0605 into esp8266:esp8266 Apr 27, 2015
@bobvanderlinden
Copy link
Contributor Author

Thanks!

@bobvanderlinden bobvanderlinden deleted the fix-wifi-connected branch April 28, 2015 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants