Page 1 of 1

Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

Posted: Thu Jul 13, 2017 8:09 am
by boylesg
I traced the problem to the fololwing line of code in WifiGeneric.cpp

Code: Select all

static bool _esp_wifi_started = false;

static bool espWiFiStart(){
    if(_esp_wifi_started){
        return true;
    }
    if(!wifiLowLevelInit()){
        return false;
    }
   [b] esp_err_t err = esp_wifi_start();[/b]

    if (err != ESP_OK) {
        log_e("esp_wifi_start %d", err);
        wifiLowLevelDeinit();
        return false;
    }
    _esp_wifi_started = true;
    return true;
}
Does anyone know how to fix this?

Re: Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

Posted: Sat Jul 15, 2017 6:05 pm
by tele_player
I just ran SimpleWiFiServer here, works as expected.

Did you set your ssid and password correctly?

Re: Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

Posted: Sun Jul 16, 2017 4:01 pm
by boylesg
Yes SSID and password are correct. The only other possibility then is that the ESP32 is stuffed?

Re: Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

Posted: Mon Jul 17, 2017 1:29 am
by tele_player
I'd try running WiFiScan to verify that radio reception works, then try connecting to an open AP.
But, of course, your device may be defective.