Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

User avatar
boylesg
Posts: 3
Joined: Thu Jul 13, 2017 7:58 am

Wifi - SimpleWifiServer hangs upon trying to connect to wifi network

Postby boylesg » Thu Jul 13, 2017 8:09 am

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?
Gregary Boyles
Greg's Indigenous Plants & Landscapes
Email: greg@gregsindigenouslandscapes.com.au
Web: www.gregsindigenouslandscapes.com.au

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

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

Postby tele_player » Sat Jul 15, 2017 6:05 pm

I just ran SimpleWiFiServer here, works as expected.

Did you set your ssid and password correctly?

User avatar
boylesg
Posts: 3
Joined: Thu Jul 13, 2017 7:58 am

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

Postby boylesg » Sun Jul 16, 2017 4:01 pm

Yes SSID and password are correct. The only other possibility then is that the ESP32 is stuffed?
Gregary Boyles
Greg's Indigenous Plants & Landscapes
Email: greg@gregsindigenouslandscapes.com.au
Web: www.gregsindigenouslandscapes.com.au

tele_player
Posts: 90
Joined: Sun Jul 02, 2017 3:38 am

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

Postby tele_player » Mon Jul 17, 2017 1:29 am

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.

Who is online

Users browsing this forum: No registered users and 17 guests