VtjScanResultParser extension
Extension on ScanResult to parse Ventriject BLE advertising data.
Extracts and validates manufacturer data and service UUIDs according to the Ventriject Seismofit BLE specification.
Manufacturer Data Format (9 bytes payload, Vendor ID 0x061D is the map key):
- Byte 0: 0x20 = Device Type ID (Seismofit)
- Byte 1: Battery voltage (× 10 + 1000 mV)
- Byte 2-7: MAC Address (reverse byte order)
- Byte 8: Device State (0=Ready, 1=Busy, 2=Data Ready)
Service UUID: d2ea0100-8c9a-4934-82a8-1b9b1c3401d2
- on
-
- ScanResult
Methods
-
isValidVentrijectDevice(
) → bool -
Available on ScanResult, provided by the VtjScanResultParser extension
Quick check if this scan result is a valid Ventriject device. -
parseVtjAdvertisingData(
) → VtjAdvertisingData? -
Available on ScanResult, provided by the VtjScanResultParser extension
Parse BLE advertising data from this scan result.