Skip to content

BLEHeartRateDevice

A BLEDevice that implements the standard GATT Heart Rate service (https://www.bluetooth.com/specifications/gatt/services/).

Supports the heart rate, interbeat interval, and skin contact measures of CarpDataTypes. If no service UUIDs are specified, the standard Heart Rate service UUID (0x180D) is used.

Inheritance
Annotations

Constructors

BLEHeartRateDevice.fromJson

BLEHeartRateDevice.fromJson(
  1. Map<String, dynamic> json
)

BLEHeartRateDevice

BLEHeartRateDevice({
  1. required String roleName,
  2. bool? isOptional = true,
  3. List<String>? serviceUuids,
  4. String? namePrefix,
  5. int? minRssi,
  6. bool allowDuplicates = true,
  7. Duration? timeout,
})

Properties

dataTypeSamplingSchemes

DataTypeSamplingSchemeMap? get dataTypeSamplingSchemes
override

Sampling schemes for all the sensors available on this device.

Implementations of DeviceConfiguration should simply return a map of all supported sampling schemes here.

fromJsonFunction

Function get fromJsonFunction
override

The function which can convert a JSON string to an object of this type.

Methods

toJson

Map<String, dynamic> toJson()
override

Return a JSON encoding of this object.