This directory contains a complete example app that demonstrates how to use the Viam Flutter Provisioning Widget with flows for hotspot, Bluetooth, and Bluetooth tethering.
- Update the constants in
lib/consts.dartwith your Viam credentials:
class Consts {
static const String apiKeyId = 'your-api-key-id';
static const String apiKey = 'your-api-key';
static const String organizationId = 'your-organization-id';
static const String psk = 'viamsetup'; // if you specify a hotspot_password in viam-defaults.json this must be updated
}- Run the app on a physical device:
flutter run- Physical Device: Must be run on a physical device (not a simulator)
- viam-agent Version: Machine must be running
0.20.0+ for standard Bluetooth flow,0.21.0+ for Bluetooth tethering