MovesenseDevice
A Movesense sensor used as a connected device in a protocol.
Add it with SmartphoneStudyProtocol.addConnectedDevice and use it as the target device of tasks with Movesense measures (see MovesenseSamplingPackage). At runtime it is handled by a MovesenseDeviceManager and registered with a MovesenseDeviceRegistration.
Key points:
- Optional by default (isOptional is true), so a study can start without it.
- namePrefix defaults to "Movesense", so a BLE scan only shows Movesense devices.
- Inheritance
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.none, includeIfNull: false)
Constructors
MovesenseDevice.fromJson
MovesenseDevice
Constants
DEFAULT_ROLE_NAME
The default role name of a Movesense device in a protocol.
DEVICE_TYPE
The device type of a Movesense device.
Properties
fromJsonFunction
The function which can convert a JSON string to an object of this type.
Methods
toJson
Return a JSON encoding of this object.