StartMeasurementCommand class
Command to start an accelerometer measurement on the device.
See BLE Interface Specification Section 7.3
- Inheritance
-
- Object
- VtjCommand<
StartMeasurementResult> - StartMeasurementCommand
Constructors
Properties
- commandId → int
-
The unique command identifier byte.
no setteroverride
- config → MeasurementConfig
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- requiresAuth → bool
-
Whether this command requires prior authentication.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
Command timeout duration. Override to customize.
no setterinherited
Methods
-
buildRequest(
) → Uint8List -
Build the request bytes to send to the device.
override
-
execute(
BluetoothCharacteristic writeCharacteristic, BluetoothCharacteristic replyCharacteristic) → Future< VtjCommandResult< StartMeasurementResult> > -
Execute the command on the device.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseResponse(
Uint8List response) → VtjCommandResult< StartMeasurementResult> -
Parse the response bytes from the device.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
) → VtjCommandResult< StartMeasurementResult> ? -
Optional pre-execution validation hook.
Return a failure result to abort execution, or null to proceed.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited