BLEHeartRateDevice
A Bluetooth Low Energy (BLE) device which implements a GATT Heart Rate service (https://www.bluetooth.com/specifications/gatt/services/).
A connected device providing CarpDataTypes.HEART_RATE, CarpDataTypes.INTERBEAT_INTERVAL and CarpDataTypes.SENSOR_SKIN_CONTACT data. Optional by default. Registered with a MACAddressDeviceRegistration.
- Inheritance
-
- Object
- Serializable
- DeviceConfiguration<
MACAddressDeviceRegistration> - BLEHeartRateDevice
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
BLEHeartRateDevice.fromJson
BLEHeartRateDevice
Properties
dataTypeSamplingSchemes
Sampling schemes for all the sensors available on this device.
Implementations of DeviceConfiguration should return a map of all supported sampling schemes here. Null in this base class.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
createRegistration
Create a DeviceRegistration which can be used to configure this device for deployment.
Override this method to configure device-specific registration options, if any.
toJson
Return a JSON encoding of this object.