Previous
System settings
Change the WiFi network on a machine that has already been provisioned and deployed. There are three approaches depending on your situation.
If the machine’s current network is no longer available (for example, you moved the machine to a new facility), force the machine back into provisioning mode:
Connect to the machine with a shell (if possible):
viam machines part shell --part=<part-id>
Create a file that forces provisioning mode on next boot:
sudo touch /opt/viam/etc/force_provisioning_mode
Reboot the machine. On boot, viam-agent enters provisioning mode and creates a WiFi hotspot.
Follow the end-user device setup instructions to connect the machine to the new network.
If you cannot shell into the machine, power cycle it. If the current network is truly unavailable, viam-agent enters provisioning mode automatically after the configured timeout (retry_connection_timeout_minutes, default 10 minutes).
If the machine is still connected to its current network and you want to add a second network (for example, when moving between locations):
priority value higher than the current network if you want the machine to prefer the new one.If you know the machine will need to connect to multiple networks, add them to the additional_networks section of the viam-defaults.json file before provisioning. See provision additional networks.
After changing the network:
Was this page helpful?
Glad to hear it! If you have any other feedback please let us know:
We're sorry about that. To help us improve, please tell us what we can do better:
Thank you!