I have been testing Wifi Server and found that
LWiFiClient.connected() does not return false when the connection of lost.
i.e. connect from Android phone (via AP) LinkIt <-> AP <-> Android phone
Make connection and then shut down phone so closing connection
LWiFiClient.connected() continues to return true.
This stops the sketch accepting any further connections.
LWiFiClient.connected() still true when connection gone
Moderators: lily.li, violet, salmanfarisvp
Re: LWiFiClient.connected() still true when connection gone
I checked Arduino's Ethernet shield and it Arduino's library
connect() returns false when the connected android is turned off.
connect() returns false when the connected android is turned off.
-
- Pre-kindergarten
- Posts: 1
- Joined: Sat Feb 28, 2015 10:49 am
Re: LWiFiClient.connected() still true when connection gone
I found this situation either!