Skip to content

Commit 2a794ef

Browse files
authored
DOCS-3877: Add hotspot_interface configuration option (#4282)
1 parent cf41fbb commit 2a794ef

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/manage/fleet/provision/setup.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ Create a defaults file called <FILE>viam-defaults.json</FILE> with the following
187187
"manufacturer": "<NAME>", # your company name
188188
"model": "<NAME>", # the machine's model
189189
"fragment_id": "<ID>", # the fragment id, required for mobile app
190+
"hotspot_interface": "<INTERFACE>", # the interface to use for hotspot/provisioning/wifi management
190191
"hotspot_prefix": "<PREFIX>", # machine creates a hotspot during setup
191192
"disable_captive_portal_redirect": false, # set to true if using a mobile app
192193
"hotspot_password": "<PASSWORD>", # password for the hotspot
@@ -207,6 +208,7 @@ Create a defaults file called <FILE>viam-defaults.json</FILE> with the following
207208
"manufacturer": "Skywalker",
208209
"model": "C-3PO",
209210
"fragment_id": "2567c87d-7aef-41bc-b82c-d363f9874663",
211+
"hotspot_interface": "wlan0",
210212
"hotspot_prefix": "skywalker-setup",
211213
"disable_captive_portal_redirect": false,
212214
"hotspot_password": "skywalker123",
@@ -232,7 +234,7 @@ It also configures timeouts to control how long `viam-agent` waits for a valid l
232234
| `manufacturer` | string | Optional | Purely informative. May be displayed on captive portal or provisioning app. Default: `"viam"`. |
233235
| `model` | string | Optional | Purely informative. May be displayed on captive portal or provisioning app. Default: `"custom"`. |
234236
| `fragment_id` | string | Optional | The `fragment_id` of the fragment to configure machines with. Required when using the Viam mobile app for provisioning. The Viam mobile app uses the fragment to configure the machine. |
235-
| `hotspot_interface` | string | Optional | The interface to use for hotspot/provisioning/wifi management. Default: first discovered 802.11 device. |
237+
| `hotspot_interface` | string | Optional | The interface to use for hotspot/provisioning/wifi management. Example: `"wlan0"`. Default: first discovered 802.11 device. |
236238
| `hotspot_prefix` | string | Optional | `viam-agent` will prepend this to the hostname of the device and use the resulting string for the provisioning hotspot SSID. Default: `"viam-setup"`. |
237239
| `hotspot_password` | string | Optional | The Wifi password for the provisioning hotspot. Default: `"viamsetup"`. |
238240
| `disable_captive_portal_redirect` | boolean | Optional | By default, all DNS lookups are redirected to the "sign in" portal, which can cause mobile devices to automatically display the portal. When set to true, only DNS requests for domains ending in .setup, like `viam.setup` are redirected, preventing the portal from appearing unexpectedly, especially convenient when using a mobile app for provisioning. Default: `false`. |
@@ -264,6 +266,7 @@ The following configuration defines the connection information and credentials f
264266
"manufacturer": "Skywalker",
265267
"model": "C-3PO",
266268
"fragment_id": "2567c87d-7aef-41bc-b82c-d363f9874663",
269+
"hotspot_interface": "wlan0",
267270
"hotspot_prefix": "skywalker-setup",
268271
"disable_captive_portal_redirect": false,
269272
"hotspot_password": "skywalker123",

docs/manage/reference/viam-agent/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ For information on managing the service, see [Manage `viam-agent`](/manage/refer
108108
"manufacturer": "viam",
109109
"model": "custom",
110110
"fragment_id": "",
111+
"hotspot_interface": "wlan0",
111112
"hotspot_prefix": "viam-setup",
112113
"hotspot_password": "viamsetup",
113114
"disable_captive_portal_redirect": false,
@@ -231,7 +232,7 @@ You can also start `viam-agent` in fast start mode by setting `VIAM_AGENT_FAST_S
231232
| `device_reboot_after_offline_minutes` | integer | Optional | If set, `viam-agent` will reboot the device after it has been offline for the specified duration. Default: `0` (disabled). |
232233
| `disable_captive_portal_redirect` | boolean | Optional | By default, ALL DNS lookups using the provisioning hotspot will redirect to the device. This causes most phones/mobile devices to automatically redirect the user to the captive portal as a "sign in" screen. When disabled, only domains ending in .setup (ex: viam.setup) will be redirected. This generally avoids displaying the portal to users and is mainly used in conjunction with a mobile provisioning application workflow. Default: `false`. |
233234
| `fragment_id` | string | Optional | The `fragment_id` of the fragment to configure machines with. Required when using the Viam mobile app for provisioning. The Viam mobile app uses the fragment to configure the machine. |
234-
| `hotspot_interface` | string | Optional | The interface to use for hotspot/provisioning/wifi management. Default: first discovered 802.11 device. |
235+
| `hotspot_interface` | string | Optional | The interface to use for hotspot/provisioning/wifi management. Example: `"wlan0"`. Default: first discovered 802.11 device. |
235236
| `hotspot_password` | string | Optional | The Wifi password for the provisioning hotspot. Default: `"viamsetup"`. |
236237
| `hotspot_prefix` | string | Optional | `viam-agent` will prepend this to the hostname of the device and use the resulting string for the provisioning hotspot SSID. Default: `"viam-setup"`. |
237238
| `manufacturer` | string | Optional | Purely informative. May be displayed on captive portal or provisioning app. Default: `"viam"`. |

0 commit comments

Comments
 (0)