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.Heyy, it works without wifi_disconnect. just changed ssid and reconnect.I 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.