How to switch ESP32 connected network?

markevens
Posts: 38
Joined: Sat Aug 01, 2020 6:31 am

How to switch ESP32 connected network?

Postby markevens » Thu May 18, 2023 1:45 pm

Scene with me is my esp32 is connected with first SSID and then I will disconnect it and try to connect it with other networks so it is showing connection process log again connet with first SSID network, not switching to new network why? and how can I do it?

markevens
Posts: 38
Joined: Sat Aug 01, 2020 6:31 am

Re: How to switch ESP32 connected network?

Postby markevens » Tue May 23, 2023 12:15 pm

Hello anyone? If you don't get I can explain

MicroController
Posts: 1729
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: How to switch ESP32 connected network?

Postby MicroController » Tue May 23, 2023 5:57 pm

try to connect it with other networks
How do you do that?

markevens
Posts: 38
Joined: Sat Aug 01, 2020 6:31 am

Re: How to switch ESP32 connected network?

Postby markevens » Thu May 25, 2023 5:13 am

So flow is my esp32 connected with network.

then I am disconnecting is with esp_wifi_disconnect()

then setting new wifi router configuration using esp_wifi_set_config()

then esp_wifi_connect();

in monitor is showing finding connecting and again connect with last wifi. not connecting with new wifi.

Who is online

Users browsing this forum: No registered users and 111 guests