MeasurementDataProcessor class

Utility class for processing measurement data received from VTJ devices.

Handles block index extraction, decompression, and CRC validation according to the BLE Interface Specification.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

calculateCrc(Uint8List data) int
Calculates CRC16-CCITT/XMODEM checksum.
extractMeasurementData(Uint8List rawData) Uint8List
Extracts measurement data from raw blocks.
processRawData(Uint8List rawData, int expectedCrc, {MeasurementConfig? config}) → ({bool crcValid, Uint8List data})
Processes raw fetch data: extracts measurement data and validates CRC.
verifyCrc(Uint8List measurementData, int expectedCrc) bool
Verifies CRC of measurement data.