DeviceInfo class

A class representing basic information about a BLE device. This class holds the information fetched from a BLE device, such as its MAC address, serial number, local name, and firmware version.

Constructors

DeviceInfo({required String deviceId, required String macAddress, required String serialNumber, required String localName, required String firmwareVersion})
Constructs a DeviceInfo instance with all relevant details about the device.

Properties

deviceId → String
The unique identifier (BLE device ID) for the device.
final
firmwareVersion → String
The firmware version of the device.
final
hashCode → int
The hash code for this object.
no setterinherited
localName → String
The local name (advertising name) of the device.
final
macAddress → String
The MAC address of the device.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serialNumber → String
The serial number of the device.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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