Currently, our customers are plugging the resin.io-managed devices using wired LAN. We want to support both, wired and wireless connections.
I don’t (yet) fully understand the behaviour of resin-wifi-connect and have the following questions:
will it only be invoked when there is NO wired connection?
will it store the credentials so it auto-connects after reboot?
what if the WiFi Access Point password changes? Will it start the process from scratch?
How can I add it to my Dockerfile? Shall I just put the example Dockerfile from resin-wifi-connect in my Dockerfile followed my original content? Will I have 2 CMD commands then?
It will store credentials and it will reconnect after reboot.
If the password changes, then if you have chosen the default condition for running wifi connect, the application will be launched again.
You may clone the GitHub repo and push it to Resin to get started. Then you may modify your Dockerfile and place the lines that add wifi-connect. You should have only one CMD at the end. In your CMD you probably execute a shell script like the start.sh above. At the end of the example start.sh you may find the placeholder comment for adding your application execution code.
Please let me know if you have any further questions!