VtjDevice class
Represents a Ventriject Seismofit device discovered via BLE scan.
Contains both the underlying Bluetooth device and parsed advertising data available before connection.
Constructors
- VtjDevice({required BluetoothDevice device, required VtjAdvertisingData advertisingData, String? firmwareVersion})
-
const
Properties
- advertisingData → VtjAdvertisingData
-
Parsed advertising data from BLE scan.
Contains battery, state, MAC address, and validation info.
final
- batteryPercentage → int
-
Convenience getter for battery percentage from advertising data.
no setter
- device → BluetoothDevice
-
The underlying Flutter Blue Plus Bluetooth device.
final
- firmwareVersion → String?
-
Firmware version (only available after connection).
Null during scan, populated after getVersion() command.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAvailable → bool
-
Whether device is available for connection (not busy).
no setter
- macAddress → String
-
Convenience getter for MAC address from advertising data.
no setter
- name → String
-
Convenience getter for device name.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → DeviceState
-
Convenience getter for device state from advertising data.
no setter
Methods
-
copyWith(
{BluetoothDevice? device, VtjAdvertisingData? advertisingData, String? firmwareVersion}) → VtjDevice -
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