Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 909 Bytes

File metadata and controls

28 lines (19 loc) · 909 Bytes

Viam Flutter Bluetooth Provisioning Example

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.

Quick Start

  1. Update the constants in lib/consts.dart with 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
}
  1. Run the app on a physical device:
flutter run

Requirements

  • 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