Skip to content

Commit

Permalink
SocketWrapper: make connected() method return true if there is data a…
Browse files Browse the repository at this point in the history
…vailable to read
  • Loading branch information
pennam committed Nov 22, 2023
1 parent 7b95100 commit ed3172b
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 ed3172b

Please sign in to comment.