I’d like to create two devices in the same application and then once they’re working ok on one WiFI network, change the SSID and password for one of the devices and then use it on a different WiFi network.
I noticed that the wifi file is actually called resin-wifi-01 rather than just resin-wifi as mentioned in the documentation that you referred me to.
I made a copy of resin-sample.ignore called resin-wifi-02 and added in my own WiFi credentials.
The guide mentions autoconnect-priority but then doesn’t go into more detail.
Would I add something like this to each file …
autoconnect-priority = 1
and
autoconnect-priority =2
… to force a connection to a specific network in the first instance ? If so, what is the wifi file naming convention ?
Or, are the filenames used to specify wifi network choices ? Would resin-wifi-01 be tried first ? And if that didn’t connect, would resin-wifi-02 be tried next ?
For the benefit of others, I created the extra file resin-wifi-02 with the info for the other WiFi network, shut down the device and moved it to the new location. It then connected to the new network.