Skip to content

Commit

Permalink
Merge pull request #9741 from michalpasztamobica/esp8266_fix_nonblock…
Browse files Browse the repository at this point in the history
…ing_connect

ESP8266: connect() returns OK in non-blocking calls
  • Loading branch information
0xc0170 committed Feb 18, 2019
2 parents f95ec95 + 32686d4 commit 1892e2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/wifi/esp8266-driver/ESP8266Interface.cpp
Expand Up @@ -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)
Expand Down

0 comments on commit 1892e2d

Please sign in to comment.