From 0b4c68b6a8d1e5fcfa627dbdc8079c5f109e0836 Mon Sep 17 00:00:00 2001 From: Thomas Zimmermann Date: Sun, 16 Aug 2015 10:20:03 +0200 Subject: [PATCH] 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. --- basic_example/user/user_main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/basic_example/user/user_main.c b/basic_example/user/user_main.c index 45e9132..6666cc7 100644 --- a/basic_example/user/user_main.c +++ b/basic_example/user/user_main.c @@ -30,6 +30,8 @@ user_init() //Set station mode wifi_set_opmode( 0x1 ); + // Don't check the mac addr + stationConf.bssid_set = 0; //Set ap settings os_memcpy(&stationConf.ssid, ssid, 32); os_memcpy(&stationConf.password, password, 64);