SensorControlService class

Inheritance

Constructors

SensorControlService({required BluetoothService service})

Properties

characteristics List<MovisensBluetoothCharacteristics>
The list of Bluetooth characteristics for this service.
getter/setter pairoverride
commandResultEvents Stream<CommandResultEvent>?
A stream of CommandResultEvents.
no setter
dataAvailableEvents Stream<DataAvailableEvent>?
A stream of DataAvailableEvents.
no setter
events Stream<MovisensEvent>
A stream of all the MovisensEvents emitted by the characteristics in this service.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
measurementEnabledEvents Stream<MeasurementEnabledEvent>?
A stream of MeasurementEnabledEvents.
no setter
measurementStatusEvents Stream<MeasurementStatusEvent>?
A stream of MeasurementStatusEvents.
no setter
name String
The string representation of the service enum.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service ↔ BluetoothService
The underlying BluetoothService for this service.
getter/setter pairinherited
storageLevelEvents Stream<StorageLevelEvent>?
A stream of StorageLevelEvents.
no setter
uuid String
UUID of this service.
getter/setter pairoverride

Methods

disableNotify() Future<void>
Disables the notifying of all bluetooth characteristic in this service.
inherited
enableNotify() Future<void>
Enables the notifying of every bluetooth characteristic in this service.
inherited
getCurrentTimeMs() Future<int?>
Get the current time in milliseconds since epoch.
getDataAvailable() Future<bool?>
Check if the device has data stored.
getMeasurementEnabled() Future<bool?>
Checks if a measurement is running on the device.
getMeasurementStartTime() Future<int?>
Get the measurement start time. Measured in milliseconds since epoch.
getMeasurementStatus() Future<MeasurementStatus?>
Returns the status of the measurement as an enum MeasurementStatus.
getStatus() Future<int?>
Not documented by Movisens. Null-Characteristic on some devices.
getStorageLevel() Future<int?>
Get storage level of device in percentage of used space.
getTimeZoneId() Future<int?>
Get the time zone ID of the time zone.
getTimeZoneOffset() Future<int?>
Time zone offset in seconds from UTC in which the sensor was started.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setCurrentTimeMs(int currentTimeMs) Future<void>
Set the current time in milliseconds since epoch.
setDeleteData(bool deleteData) Future<void>
Set delete data. If set to True, then it deletes all data on device.
setMeasurementEnabled(bool measurementEnabled) Future<void>
Enable or disable a measurement on the device.
setSaveEnergy(bool saveEnergy) Future<void>
Must be set to 1 to put the connection into energy saving mode (Recommended after configuration is done). As soon as a new connection is established the save energy mode must be enabled again.
setSendBufferedData(bool sendBufferedData) Future<void>
If set to True and buffered data is available the sensor sends out the data.
setStartMeasurement(int duration) Future<void>
Start a measurement and with a given duration in seconds.
setTimeZoneId(int timeZoneId) Future<void>
Set the time zone ID of the time zone.
setTimeZoneOffset(int timeZoneOffset) Future<void>
Time zone offset in seconds from UTC in which the sensor will be started.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited