Skip to content

Quick Start

  • Flutter SDK installed
  • Dart SDK compatible with this package’s pubspec.yaml

Use the latest version listed on pub.dev package page, then add it to your app pubspec.yaml:

dependencies:
mrs_sdk_flutter: ^0.7.0

Then fetch dependencies:

Terminal window
flutter pub get
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',
),
),
);
final device = await spokeZone.devices.get(123);
final dataFileId = await spokeZone.dataFiles.create('log');
await spokeZone.dataFiles.upload(dataFileId, payloadBytes);