BlueZDevice class

A Bluetooth device.

Constructors

BlueZDevice(BlueZClient _client, _BlueZObject _object)

Properties

adapter BlueZAdapter
The adapter this device belongs to.
no setter
address String
MAC address of this device.
no setter
addressType BlueZAddressType
The Bluetooth device address type.
no setter
alias String
An alternative name for this device.
no setter
appearance int
External appearance of device, as found on GAP service. Appearance values are defined in the Bluetooth specification.
no setter
blocked bool
True if connections from this device will be ignored.
no setter
connected bool
True if this device is currently connected.
no setter
deviceClass int
Bluetooth device class.
no setter
gattServices List<BlueZGattService>
The Gatt services provided by this device.
no setter
hashCode int
The hash code for this object.
no setterinherited
icon String
Icon name for this device.
no setter
legacyPairing bool
True if this device only supports the pre-2.1 pairing mechanism.
no setter
manufacturerData Map<BlueZManufacturerId, List<int>>
Manufacturer specific advertisement data.
no setter
modalias String
Remote Device ID information in modalias format used by the kernel and udev.
no setter
name String
Name of this device.
no setter
paired bool
True if the device is currently paired.
no setter
propertiesChanged Stream<List<String>>
Stream of property names as their values change.
no setter
rssi int
Signal strength received from the devide.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serviceData Map<BlueZUUID, List<int>>
Service advertisement data.
no setter
servicesResolved bool
True if service discovery has been resolved.
no setter
trusted bool
True if the remote is seen as trusted.
no setter
txPower int
Advertised transmit power level.
no setter
uuids List<BlueZUUID>
UUIDs that indicate the available remote services.
no setter
wakeAllowed bool
True if the device can wake the host from system suspend.
no setter

Methods

cancelPairing() Future<void>
Cancel a pairing that is in progress.
connect() Future<void>
Connect to this device.
connectProfile(BlueZUUID uuid) Future<void>
Connects to the service with uuid.
disconnect() Future<void>
Disconnect from this device
disconnectProfile(BlueZUUID uuid) Future<void>
Disconnects the service with uuid.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pair() Future<void>
Pair with this device.
setAlias(String value) Future<void>
Sets the alternative name for this device.
setBlocked(bool value) Future<void>
Sets if connections from this device will be ignored.
setTrusted(bool value) Future<void>
Sets if the remote is seen as trusted.
setWakeAllowed(bool value) Future<void>
Sets if the device can wake the host from system suspend.
toString() String
A string representation of this object.
inherited

Operators

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