Skip to content

Commit fcc63d9

Browse files
authored
Merge pull request #770 from pennam/client_connected
SocketWrapper: make connected() method return true if there is data available
2 parents ef18bf2 + ed3172b commit fcc63d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/SocketWrapper/src/MbedClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ void arduino::MbedClient::stop() {
299299
}
300300

301301
uint8_t arduino::MbedClient::connected() {
302-
return _status;
302+
return ((_status) || (available() > 0));
303303
}
304304

305305
IPAddress arduino::MbedClient::remoteIP() {

0 commit comments

Comments
 (0)