ESP8266: connect() returns OK in non-blocking calls

pull/9741/head
Michal Paszta 2019-02-15 17:33:21 +02:00
parent a3500a3040
commit 32686d48a8
1 changed files with 5 additions and 1 deletions

View File

@ -253,7 +253,11 @@ int ESP8266Interface::connect()
_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)