BLEDeviceRegistration
A DeviceRegistration for Bluetooth Low Energy (BLE) devices which can connect to the smartphone via BLE, e.g., a heart rate monitor or a BLE beacon.
- Inheritance
-
- Object
- Serializable
- DeviceRegistration
- CamsDeviceRegistration
- HardwareDeviceRegistration
- BLEDeviceRegistration
- Annotations
-
- @JsonSerializable(includeIfNull: false, explicitToJson: true)
Constructors
BLEDeviceRegistration.fromJson
BLEDeviceRegistration
Creates a new BLEDeviceRegistration with a unique BLE bleAddress.
The bleAddress is also used as the device id, and bleName is used as display name and hardware name, if those are not given.
Properties
bleAddress
The BLE address of this device.
The format of the BLE address is platform-specific. On Android, it is typically a MAC address of the form 00:04:79:00:0F:4D. On iOS, it may be a UUID string on the form E2C56DB5-DFFB-48D2-B060-D0F5A71096E0.
bleName
The BLE name of this device, if known. Not all devices will have a BLE name, and it may not be available at the time of registration.
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.