I program my IOT33 from home, and test it in my caravan.
At the moment I have to re-program the secret WiFI address and password.
Is there a way for me to put in two (or more) WiFi addresses and passwords so that it automatically picks up either home or caravan without having to reprogram?
Good point. That is a bit of lateral thinking. It means changing a lot of peripherals and some of my IoT devices don't like changing passwords. Will try if coding fails.
Thanks Juraj,
that bit I understand.
But in thingproperties.h there is "WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASS); "
and setup "ArduinoCloud.begin(ArduinoIoTPreferredConnection); "
I can't see how to trap the error. The serial port tells me it can't connect, but that error code is hidden from me (I think).
I have a system that does a netscan, allows the user to connect by entering a password and once the connection is successful allows the user to store it in EEPROM.
When restarted it will check do again the netscan and compares to the list of stored networks and if there is a matching ssid will try and connect to it with the password that belongs to it.
Also there is still the possibility to add a new connection to the list.