Call esp_wifi_start in WiFi::begin

Fixes: https://github.com/espressif/arduino-esp32/issues/391
This commit is contained in:
me-no-dev 2017-05-23 11:32:03 +03:00
parent 432bcf5a0a
commit 5d92784710

View File

@ -141,6 +141,7 @@ wl_status_t WiFiSTAClass::begin(const char* ssid, const char *passphrase, int32_
esp_wifi_set_channel(channel, WIFI_SECOND_CHAN_NONE); esp_wifi_set_channel(channel, WIFI_SECOND_CHAN_NONE);
} }
esp_wifi_start();
if(connect) { if(connect) {
esp_wifi_connect(); esp_wifi_connect();
} }