FetchMeasurementCommand class

Command to start download of last completed measurement.

The measurement data will be sent in the RPC Download Characteristic. Can also be used to restart an interrupted fetch by setting the start_idx.

See BLE Interface Specification Section 7.6

Inheritance

Constructors

FetchMeasurementCommand({int startIndex = 0})

Properties

commandId int
The unique command identifier byte.
no setteroverride
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
startIndex int
The index of the first packet to be sent. Set to 0 to fetch from the beginning.
final
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<FetchMeasurementResult>>
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<FetchMeasurementResult>
Parse the response bytes from the device.
override
toString() String
A string representation of this object.
inherited
validate() VtjCommandResult<FetchMeasurementResult>?
Optional pre-execution validation hook. Return a failure result to abort execution, or null to proceed.
inherited

Operators

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