We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 9194e32 + 636b20e commit e707506Copy full SHA for e707506
libraries/SocketWrapper/src/MbedClient.cpp
@@ -10,7 +10,7 @@ arduino::MbedClient::MbedClient()
10
}
11
12
uint8_t arduino::MbedClient::status() {
13
- return _status;
+ return (_status && (getNetwork()->get_connection_status() < NSAPI_STATUS_DISCONNECTED));
14
15
16
@@ -300,7 +300,7 @@ void arduino::MbedClient::stop() {
300
301
302
uint8_t arduino::MbedClient::connected() {
303
- return ((_status) || (available() > 0));
+ return ((status() == true) || (available() > 0));
304
305
306
IPAddress arduino::MbedClient::remoteIP() {
0 commit comments