mirror of https://github.com/ARMmbed/mbed-os.git
ESP8266: connect() returns OK in non-blocking calls
parent
a3500a3040
commit
32686d48a8
|
@ -253,7 +253,11 @@ int ESP8266Interface::connect()
|
||||||
|
|
||||||
_cmutex.unlock();
|
_cmutex.unlock();
|
||||||
|
|
||||||
return _connect_retval;
|
if (!_if_blocking) {
|
||||||
|
return NSAPI_ERROR_OK;
|
||||||
|
} else {
|
||||||
|
return _connect_retval;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int ESP8266Interface::set_credentials(const char *ssid, const char *pass, nsapi_security_t security)
|
int ESP8266Interface::set_credentials(const char *ssid, const char *pass, nsapi_security_t security)
|
||||||
|
|
Loading…
Reference in New Issue