Re: Setting wifi configuration
Posted: Fri Dec 28, 2018 6:34 pm
Yeah. Exactly, We are also doing same thing like changing WiFi configurations and reconnecting WiFi whenever want to switch router or hot-spot as per our requirements.burkulesomesh43 wrote: ↑Wed Dec 26, 2018 7:41 amHeyy, it works without wifi_disconnect. just changed ssid and reconnect.hoainguyen265 wrote: ↑Tue Dec 25, 2018 7:11 amI think it just like using wifi on mobile phone. When use want to connect to another wifi, you just disconnect and reconnect. And callingis the same with disable and enable wifi on mobile phone and doing this periodically is not good.Code: Select all
esp_wifi_start(); esp_wifi_stop()
So in my opinion, if you just want change wifi ssid, just disconnect, set up new wifi ssid and reconnect is good choice.