Skip to content

Commit df16fa7

Browse files
committed
MbedClient: let status() check also for network connection status
1 parent 546529a commit df16fa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/src/MbedClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ arduino::MbedClient::MbedClient()
1010
}
1111

1212
uint8_t arduino::MbedClient::status() {
13-
return _status;
13+
return (_status && (getNetwork()->get_connection_status() < NSAPI_STATUS_DISCONNECTED));
1414
}
1515

1616

0 commit comments

Comments
 (0)