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.
1 parent f47b431 commit 93b9cc3Copy full SHA for 93b9cc3
ESP8266/ESP8266.cpp
@@ -840,7 +840,8 @@ void ESP8266::_oob_watchdog_reset()
840
_sock_i[i].open = false;
841
}
842
843
- _conn_status = NSAPI_STATUS_DISCONNECTED;
+ // Makes possible to reinitialize
844
+ _conn_status = NSAPI_STATUS_ERROR_UNSUPPORTED;
845
_conn_stat_cb();
846
847
ESP8266Interface.cpp
@@ -669,7 +669,9 @@ void ESP8266Interface::update_conn_state_cb()
669
case NSAPI_STATUS_LOCAL_UP:
670
case NSAPI_STATUS_ERROR_UNSUPPORTED:
671
default:
672
- MBED_ASSERT(false);
+ _started = false;
673
+ _initialized = false;
674
+ _conn_stat = NSAPI_STATUS_DISCONNECTED;
675
676
677
// Inform upper layers
0 commit comments