Skip to content

Commit

Permalink
MbedClient: check for client and network status in connected()
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Jun 27, 2024
1 parent df16fa7 commit 636b20e
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 @@ -305,7 +305,7 @@ void arduino::MbedClient::stop() {
}

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

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

0 comments on commit 636b20e

Please sign in to comment.