You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can find sample connection code on each machine's **CONNECT** tab in the [Viam app](https://app.viam.com).
29
+
Select **Flutter** to display a code snippet with connection code as well as some calls to the APIs of the resources you've configured on your machine.
30
+
31
+
You can use the toggle to include the machine API key and API key ID, though we strongly recommend storing your API keys in environment variables to reduce the risk of accidentally sharing your API key and granting access to your machines.
32
+
33
+
## Write your app
34
+
35
+
Refer to the [Viam Flutter SDK](https://flutter.viam.dev/) documentation for available methods and widgets.
36
+
37
+
### Example usage
19
38
20
39
The following code, part of [Drive a rover in a square in 2 minutes](/how-tos/drive-rover/), shows how you could move a robotic rover base in a square using the base API's [`moveStraight`](https://flutter.viam.dev/viam_sdk/Base/moveStraight.html) and [`spin`](https://flutter.viam.dev/viam_sdk/Base/spin.html) methods:
21
40
@@ -66,8 +85,22 @@ For a more in-depth guide with more screens, see the following guide:
You can use the mobile app simulator on your development computer to test your app.
91
+
The connection code will establish communication with your machine over LAN or WAN.
92
+
93
+
## Set up user authentication
70
94
71
95
Viam uses [FusionAuth](FusionAuth) for authentication and authorization.
72
96
73
97
Use the [Viam CLI `auth-app` command](/dev/tools/cli/#auth-app) to register your application with FusionAuth so that you or your users can log into your app with the same credentials they use to log into the [Viam app](https://app.viam.com).
98
+
99
+
For support building apps with custom login flows, [contact us](mailto:support@viam.com).
100
+
101
+
## Next steps
102
+
103
+
To publish your app to the app stores when you're done testing and adding authentication, see Flutter's articles:
You can find sample connection code on each machine's **CONNECT** tab in the [Viam app](https://app.viam.com).
28
+
Select **TypeScript** to display a code snippet, with connection code as well as some calls to the APIs of the resources you've configured on your machine.
29
+
30
+
You can use the toggle to include the machine API key and API key ID, though we strongly recommend storing your API keys in environment variables to reduce the risk of accidentally sharing your API key and granting access to your machines.
31
+
32
+
## Write your app
33
+
34
+
Refer to the [Viam TypeScript SDK](https://ts.viam.dev/) documentation for available methods.
35
+
36
+
### Example usage
37
+
38
+
For an example using Vite to connect to a machine, see [Viam's vanilla TypeScript quickstart example on GitHub](https://github.com/viamrobotics/viam-typescript-sdk/tree/main/examples/vanilla).
18
39
19
40
The following tutorial uses the Viam TypeScript SDK to query data that has been uploaded to the Viam cloud from a sensor, and display it in a web dashboard.
You can run your app directly on the machine's single-board computer (SBC) if applicable, or you can run it from a separate computer connected to the internet or to the same local network as your machine's SBC or microcontroller.
49
+
The connection code will establish communication with your machine over LAN or WAN.
50
+
51
+
You can also host your app on a server or hosting service of your choice.
52
+
53
+
## Set up user authentication
26
54
27
55
Viam uses [FusionAuth](FusionAuth) for authentication and authorization.
28
56
29
57
Use the [Viam CLI `auth-app` command](/dev/tools/cli/#auth-app) to register your application with FusionAuth so that you or your users can log into your app with the same credentials they use to log into the [Viam app](https://app.viam.com).
58
+
59
+
For support building apps with custom login flows, [contact us](mailto:support@viam.com).
0 commit comments