Wi-Fi automatic connection

Hello dear friends!
I have a project that works very well, but every time I change the environment I have to go into the code and change the wi-fi network. How to do this automatically?

You canโ€™t do it automatically, unless you already know all of the possible SSIDs and passwords and write your code so that it checks each one (or use a library that does this for you).
The simple approach is to use Blynk Edgent and re-provision your device via the app each time.


1 Like

Hello Pete!

Is there any video tutorial on using Blynk Edgent?


There are lots of videos on YouTube on BlynkIoT. You can check them out to understand how things work.

Iโ€™d start with the official documentation, then using the Edgent example sketch with just your own template ID and template name inserted, and an appropriate board type un-commented.


Thanks Madhukesh!

1 Like

I will try to implement Pete!

Hi Pete! Could you help me with the code that uses more than one network to connect automatically? In my company we have 03 different networksโ€ฆ

You could either reset/reconfigure the device every time when you want to move the device from one place to another. I hope you have got the edgent example working and how to reconfigure a device.

Or you can use WiFiMulti library. More info here :point_down:t2:

Iโ€™m not going to write your code for you, but I am happy to point you in the right direction of you provide more information about your project, hardware, requirements etc.


Excellent my friend. Thank you very much for your attention and guidance.

Ok Pete, thanks!