MetamotionRLBoard constructor

MetamotionRLBoard({
  1. required String id,
  2. required String name,
  3. required String? mac,
})

Implementation

MetamotionRLBoard({
  required this.id,
  required this.name,
  required this.mac,
})  : _channel = MethodChannel('$channelNamespace/metawear/$id'),
      _stateChannel = EventChannel('$channelNamespace/metawear/$id/state') {
  if (!Platform.isIOS) {
    mac = id;
  } else {
    mac = null;
  }

  sensorFusionBoschModule = SensorFusionBoschModule(_channel);
}