From 5d927847106f84e4714ee2a50545880b0911c1d8 Mon Sep 17 00:00:00 2001 From: me-no-dev Date: Tue, 23 May 2017 11:32:03 +0300 Subject: [PATCH] Call esp_wifi_start in WiFi::begin Fixes: https://github.com/espressif/arduino-esp32/issues/391 --- libraries/WiFi/src/WiFiSTA.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/WiFi/src/WiFiSTA.cpp b/libraries/WiFi/src/WiFiSTA.cpp index db712028..37ff5152 100644 --- a/libraries/WiFi/src/WiFiSTA.cpp +++ b/libraries/WiFi/src/WiFiSTA.cpp @@ -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_start(); if(connect) { esp_wifi_connect(); }