That's really strange as you said. I'm afraid there is something wrong with either
your boards, WiFi router or noisy / overcrowded 2.4GHz bands. Also be sure the password is longer than 8 chars.
Please try to isolate.
I've tried here without any issue at all. You can try with different settings and see which is working better/faster for you, certainly after you've found out and fixed your WiFi culprit.
I'm using
ESP32 core 2.0.0-rc1, ESP32 core 1.0.6 on ESP32_DEV
1) With
Code: Select all
#define WIFI_MULTI_1ST_CONNECT_WAITING_MS 2000L
#define WIFI_MULTI_CONNECT_WAITING_MS 1000L
Code: Select all
Waiting for WiFi... WiFi connected after time: 1
SSID: HueNet1, RSSI: -39
Channel: 2, IP address: 192.168.2.107
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1240
load:0x40078000,len:13472
load:0x40080400,len:3668
entry 0x400805f0
#### Reset here
Waiting for WiFi... WiFi connected after time: 1
SSID: HueNet1, RSSI: -37
Channel: 2, IP address: 192.168.2.107
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1240
load:0x40078000,len:13472
load:0x40080400,len:3668
entry 0x400805f0
#### Reset here
Waiting for WiFi... WiFi connected after time: 1
SSID: HueNet1, RSSI: -37
Channel: 2, IP address: 192.168.2.107
2) With
Code: Select all
#define WIFI_MULTI_1ST_CONNECT_WAITING_MS 800L
#define WIFI_MULTI_CONNECT_WAITING_MS 1000L
Code: Select all
Waiting for WiFi... WiFi connected after time: 2
SSID: HueNet1, RSSI: -43
Channel: 2, IP address: 192.168.2.107
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1240
load:0x40078000,len:13472
load:0x40080400,len:3668
entry 0x400805f0
#### Reset here
Waiting for WiFi... WiFi connected after time: 2
SSID: HueNet1, RSSI: -38
Channel: 2, IP address: 192.168.2.107
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1240
load:0x40078000,len:13472
load:0x40080400,len:3668
entry 0x400805f0
#### Reset here
Waiting for WiFi... WiFi connected after time: 2
SSID: HueNet1, RSSI: -35
Channel: 2, IP address: 192.168.2.107