File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
components/wifi/esp8266-driver/ESP8266 Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1137,8 +1137,13 @@ void ESP8266::_oob_connection_status()
1137
1137
" ESP8266::_oob_connection_status: invalid AT cmd\n " );
1138
1138
}
1139
1139
} else {
1140
- MBED_ERROR (MBED_MAKE_ERROR (MBED_MODULE_DRIVER, MBED_ERROR_CODE_ENOMSG), \
1141
- " ESP8266::_oob_connection_status: network status timed out\n " );
1140
+ tr_error (" _oob_connection_status(): network status timeout, disconnecting" );
1141
+ if (!disconnect ()) {
1142
+ tr_warning (" _oob_connection_status(): driver initiated disconnect failed" );
1143
+ } else {
1144
+ tr_debug (" _oob_connection_status(): disconnected" );
1145
+ }
1146
+ _conn_status = NSAPI_STATUS_ERROR_UNSUPPORTED;
1142
1147
}
1143
1148
1144
1149
MBED_ASSERT (_conn_stat_cb);
You can’t perform that action at this time.
0 commit comments