Page 1 of 1

wifi connection issue

Posted: Tue Jun 14, 2022 7:30 am
by Weizzh
esp32s2
idf v432
hi
my esp32 can connect to wifi without any problem. But, most times it cannot connect to network. So it cannot set network time and cannot connect to my mqtt server.
I noticed one thing: after connected to wifi, when "aid" is 3, esp32 can connect to netowrk, when "aid" is 1 or 2, it cannnot.
Anybody give some advices? great thanks.

Re: wifi connection issue

Posted: Tue Jun 14, 2022 8:42 am
by Weizzh
I think I found the reason: esp32 cannot get the right gw IP. When connected wifi, the gw ip is always set to "192.168.1.167", then esp32 cannot connect to network. Sometimes it get the right gw ip "192.168.1.1", then the network is fine.
How can I fix this problem?