Hi.
On one hardware i create an access point but for the instant i'm not able to set a ssid, so it's empty.
I first tried to connect to it with the esp32 by putting the ssid=""; and did get a big crash, so i did setup the bssid and bssid_set and i still crash when the ssid="" and if i put a random string in it to avoid crashing, i'm not able to connect to my access point.
am i missing something ?
thanks
-----------------------------------------------------------------------------------------------------
assertion "0 && "esp_wifi_connect()"" failed: file "xxx/ESP32/main/main.c", line 172, function: app_main
abort() was called at PC 0x400f0f1f
Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception)
Backtrace: 0x40008155:0x3ffc9d70 0x40007d16:0x3ffc9d90 0x4010484c:0x3ffc9dc0 0x
400d0e69:0x3ffca740
Rebooting...
empty ssid with bssid_set to true
Re: empty ssid with bssid_set to true
What is the code on line 172?
Have you tried setting ssid on both ap and sta to 32 nul bytes?
Have you tried setting ssid on both ap and sta to 32 nul bytes?
Re: empty ssid with bssid_set to true
My AP is not an ESP32, only my station is. and the ssid is empty.
The crash is from there -> ESP_ERROR_CHECK( esp_wifi_connect() );
i did not set it to null but actually "" that's perhaps my error. will try like that
The crash is from there -> ESP_ERROR_CHECK( esp_wifi_connect() );
i did not set it to null but actually "" that's perhaps my error. will try like that
Re: empty ssid with bssid_set to true
Forgot that the ssid is not a char* but an int array so null is not an option, but i did make sur to do a memset to 0 of the whole array.
and yes i crash everytime i call esp_wifi_connect() with an empty ssid and set to use the bssid.
If i put any char in the ssid i don't crash but i fail connection.
and yes i crash everytime i call esp_wifi_connect() with an empty ssid and set to use the bssid.
If i put any char in the ssid i don't crash but i fail connection.
Re: empty ssid with bssid_set to true
It seems like a bug. What is the expected behavior:
If ssid is null (zero length, wildcard) and bssid is set esp32 should use ssid from received beacon frame matching bssid and also maybe send null probe request. If ap is set to hide ssid then it will use null length 32 in beacon frame, but if real ssid is also null it must also be length 32, which may depend on platform. Otherwise user would have to know and be able to set length of ssid. But not sure why one would hide real null ssid behind fake null ssid
http://stackoverflow.com/questions/4919 ... d-password
I guess it is technically valid, but curious why ssid needs to be null
If ssid is null (zero length, wildcard) and bssid is set esp32 should use ssid from received beacon frame matching bssid and also maybe send null probe request. If ap is set to hide ssid then it will use null length 32 in beacon frame, but if real ssid is also null it must also be length 32, which may depend on platform. Otherwise user would have to know and be able to set length of ssid. But not sure why one would hide real null ssid behind fake null ssid
http://stackoverflow.com/questions/4919 ... d-password
I guess it is technically valid, but curious why ssid needs to be null
Last edited by WiFive on Wed Jan 25, 2017 9:40 pm, edited 2 times in total.
Re: empty ssid with bssid_set to true
Looks like you can set ssid length explicitly for ap, but not sta
https://github.com/espressif/esp-idf/bl ... pes.h#L134
https://github.com/espressif/esp-idf/bl ... pes.h#L134
Who is online
Users browsing this forum: No registered users and 115 guests