diff --git a/libraries/SocketWrapper/src/MbedClient.cpp b/libraries/SocketWrapper/src/MbedClient.cpp index 2bb933350..425abad7c 100644 --- a/libraries/SocketWrapper/src/MbedClient.cpp +++ b/libraries/SocketWrapper/src/MbedClient.cpp @@ -10,7 +10,7 @@ arduino::MbedClient::MbedClient() } uint8_t arduino::MbedClient::status() { - return _status; + return (_status && (getNetwork()->get_connection_status() < NSAPI_STATUS_DISCONNECTED)); } @@ -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() { pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy