mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #9885 from VeijoPesonen/esp8266_conn_timeout_err2trace
ESP8266: graceful disconnect on network state timeoutpull/9899/head
commit
9d9a076f10
|
|
@ -1151,8 +1151,13 @@ void ESP8266::_oob_connection_status()
|
||||||
"ESP8266::_oob_connection_status: invalid AT cmd\n");
|
"ESP8266::_oob_connection_status: invalid AT cmd\n");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER, MBED_ERROR_CODE_ENOMSG), \
|
tr_error("_oob_connection_status(): network status timeout, disconnecting");
|
||||||
"ESP8266::_oob_connection_status: network status timed out\n");
|
if (!disconnect()) {
|
||||||
|
tr_warning("_oob_connection_status(): driver initiated disconnect failed");
|
||||||
|
} else {
|
||||||
|
tr_debug("_oob_connection_status(): disconnected");
|
||||||
|
}
|
||||||
|
_conn_status = NSAPI_STATUS_ERROR_UNSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
MBED_ASSERT(_conn_stat_cb);
|
MBED_ASSERT(_conn_stat_cb);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue