Quick Start
Prerequisites
Section titled “Prerequisites”- Flutter SDK installed
- Dart SDK compatible with this package’s
pubspec.yaml
Install
Section titled “Install”Use the latest version listed on pub.dev package page, then add it to your app pubspec.yaml:
dependencies: mrs_sdk_flutter: ^0.7.0Then fetch dependencies:
flutter pub getMinimal Setup
Section titled “Minimal Setup”import 'package:mrs_sdk_flutter/mrs_sdk_flutter.dart';
final spokeZone = SpokeZone( config: SpokeZoneConfig.device( deviceAuth: DeviceAuthCallbacks( cpuId: () async => 'cpu-id', uuid: () async => 'uuid', deviceId: () async => 123, initialDeviceToken: () async => 'device-token', ), ),);Example Usage
Section titled “Example Usage”final device = await spokeZone.devices.get(123);final dataFileId = await spokeZone.dataFiles.create('log');await spokeZone.dataFiles.upload(dataFileId, payloadBytes);