Skip to content

Commit 0b4c68b

Browse files
committed
basic_example: set stationConf.bssid_set to 0
When bssid_set contains anything else than 0, it will only connect to the ap if the mac address matches. If this is left uninitialized it may contain garbage and the ESP will never connect to the ap.
1 parent 6edbe99 commit 0b4c68b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

basic_example/user/user_main.c

+2
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ user_init()
3030
//Set station mode
3131
wifi_set_opmode( 0x1 );
3232

33+
// Don't check the mac addr
34+
stationConf.bssid_set = 0;
3335
//Set ap settings
3436
os_memcpy(&stationConf.ssid, ssid, 32);
3537
os_memcpy(&stationConf.password, password, 64);

0 commit comments

Comments
 (0)