mirror of https://github.com/ARMmbed/mbed-os.git
As part of the ESP8266 connect sequence, ESP8266Interface::connect, a software reset is performed. If the ESP8266 had been connected previously then the ESP8266 will sometimes send a "WIFI DISCONNECT" OOB message before performing the software reset. This causes the ESP8266::_oob_connection_status to change its state (_conn_status) from NSAPI_STATUS_DISCONNECTED to NSAPI_STATUS_CONNECTING. This causes ESP8266Interface::_startup, called later in the boot seqeunce, to skip ESP8266::startup. Without this call socket mux mode (CIPMUX=1) is never enabled and all send commands using this format fail with a "Link Type" error. This patch fixes that problem by unconditionally calling ESP8266::startup as part of the ESP8266 connect sequence. |
||
---|---|---|
.. | ||
esp8266-driver |