Page 1 of 1

LWiFiClient.connected() still true when connection gone

Posted: Sat Jan 17, 2015 4:58 pm
by matthew
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.

Re: LWiFiClient.connected() still true when connection gone

Posted: Mon Jan 19, 2015 9:30 am
by matthew
I checked Arduino's Ethernet shield and it Arduino's library
connect() returns false when the connected android is turned off.

Re: LWiFiClient.connected() still true when connection gone

Posted: Mon Mar 16, 2015 8:26 pm
by yuan_haoliang
I found this situation either!