NodeMCU - Auto Connect WiFi
Posted: Mon Jan 13, 2020 10:48 am
Hi,
I am looking into using a NodeMCU for a project I am working on.
I want to be able to connect to the NodeMCU and setup the WiFi network details so each time it is powered off / on it will auto connect to the network that has been set. Looking at this guide https://randomnerdtutorials.com/wifimanager-with-esp8266-autoconnect-custom-parameter-and-manage-your-ssid-and-password/ it looks do-able using the library "WiFi Manager".
The only use case I don't think this guide covers, and that i'm hoping that you guys can help clear up for me is this...
NodeMCU is setup to connect the my home network, I buy another router that has a different SSID, I need to connect the NodeMCU to this new router / SSID. Does this WiFi Manager library or any other library have the functionality to achieve this? or would I need to power down the known router that the NodeMCU has saved and then connect it to the new SSID before power up the old router?
Hope this make sense - the project could potentially going into house holds, where such a use case might happen hence why I want to know.
As a side question, lets say the "project" gets moved and the know wifi router is not in range will it still keep the save credentials or wipe them before putting the NodeMCU back into AP mode?
Thanks,
Anton
I am looking into using a NodeMCU for a project I am working on.
I want to be able to connect to the NodeMCU and setup the WiFi network details so each time it is powered off / on it will auto connect to the network that has been set. Looking at this guide https://randomnerdtutorials.com/wifimanager-with-esp8266-autoconnect-custom-parameter-and-manage-your-ssid-and-password/ it looks do-able using the library "WiFi Manager".
The only use case I don't think this guide covers, and that i'm hoping that you guys can help clear up for me is this...
NodeMCU is setup to connect the my home network, I buy another router that has a different SSID, I need to connect the NodeMCU to this new router / SSID. Does this WiFi Manager library or any other library have the functionality to achieve this? or would I need to power down the known router that the NodeMCU has saved and then connect it to the new SSID before power up the old router?
Hope this make sense - the project could potentially going into house holds, where such a use case might happen hence why I want to know.
As a side question, lets say the "project" gets moved and the know wifi router is not in range will it still keep the save credentials or wipe them before putting the NodeMCU back into AP mode?
Thanks,
Anton