wifi connection issue

Weizzh
Posts: 19
Joined: Mon Nov 22, 2021 9:32 am

wifi connection issue

Postby Weizzh » Tue Jun 14, 2022 7:30 am

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.

Weizzh
Posts: 19
Joined: Mon Nov 22, 2021 9:32 am

Re: wifi connection issue

Postby Weizzh » Tue Jun 14, 2022 8:42 am

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?

Who is online

Users browsing this forum: No registered users and 310 guests