MovisensDevice class
A representation of a Movisens device with services.
It contains all the services that the Movisens device provides and the methods for handling device connection.
Constructors
- MovisensDevice({required String name})
- A Movisens bluetooth device.
Properties
- ambientService → AmbientService?
-
Get the AmbientService if the device supports it.
Is null if not supported / discovered on device.
no setter
- batteryService → BatteryService?
-
Get the BatteryService if the device supports it.
Is null if not supported / discovered on device.
no setter
- deviceInformationService → DeviceInformationService?
-
Get the DeviceInformationService if the device supports it.
Is null if not supported / discovered on device.
no setter
- edaService → EdaService?
-
Get the EdaService if the device supports it.
Is null if not supported / discovered on device.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hrvService → HrvService?
-
Get the HrvService if the device supports it.
Is null if not supported / discovered on device.
no setter
- id ↔ String?
-
The BLE id of the device. Only known after the device is connected.
getter/setter pair
- isConnected → bool
-
Is the phone and app connected to the Movisens device
no setter
- markerService → MarkerService?
-
Get the MarkerService if the device supports it.
Is null if not supported / discovered on device.
no setter
- name ↔ String
-
The name of the device. Used to connect to it.
getter/setter pair
- physicalActivityService → PhysicalActivityService?
-
Get the PhysicalActivityService if the device supports it.
Is null if not supported / discovered on device.
no setter
- respirationService → RespirationService?
-
Get the RespirationService if the device supports it.
Is null if not supported / discovered on device.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sensorControlService → SensorControlService?
-
Get the SensorControlService if the device supports it.
Is null if not supported / discovered on device.
no setter
- skinTemperatureService → SkinTemperatureService?
-
Get the SkinTemperatureService if the device supports it.
Is null if not supported / discovered on device.
no setter
-
state
→ Stream<
BluetoothConnectionState> ? -
The bluetooth connection state of the device.
no setter
- userDataService → UserDataService?
-
Get the UserDataService if the device supports it.
Is null if not supported / discovered on device.
no setter
Methods
-
connect(
) → Future< void> - Connect to the Movisens device using the name. Automatically discovers services on device and stores them.
-
disconnect(
) → Future< void> - Disconnect from the device. Clears device and services from memory.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited