LWiFiClient.connected() still true when connection gone

Moderators: lily.li, violet, salmanfarisvp

Post Reply
matthew
Pre-kindergarten
Pre-kindergarten
Posts: 27
Joined: Mon Dec 29, 2014 2:11 pm

LWiFiClient.connected() still true when connection gone

Post by matthew » Sat Jan 17, 2015 4:58 pm

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.

matthew
Pre-kindergarten
Pre-kindergarten
Posts: 27
Joined: Mon Dec 29, 2014 2:11 pm

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

Post by matthew » Mon Jan 19, 2015 9:30 am

I checked Arduino's Ethernet shield and it Arduino's library
connect() returns false when the connected android is turned off.

yuan_haoliang
Pre-kindergarten
Pre-kindergarten
Posts: 1
Joined: Sat Feb 28, 2015 10:49 am

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

Post by yuan_haoliang » Mon Mar 16, 2015 8:26 pm

I found this situation either!

Post Reply