Skip to content

Commit

Permalink
Merge pull request #770 from pennam/client_connected
Browse files Browse the repository at this point in the history
SocketWrapper: make connected() method return true if there is data available
  • Loading branch information
facchinm authored Dec 4, 2023
2 parents ef18bf2 + ed3172b commit fcc63d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/SocketWrapper/src/MbedClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ void arduino::MbedClient::stop() {
}

uint8_t arduino::MbedClient::connected() {
return _status;
return ((_status) || (available() > 0));
}

IPAddress arduino::MbedClient::remoteIP() {
Expand Down

0 comments on commit fcc63d9

Please sign in to comment.