BleDescriptor

homey.ble_descriptor

A BLE descriptor of a characteristic.

This class must not be initialized by the developer, but retrieved through BleCharacteristic.descriptors or by callingBleCharacteristic.discover_descriptors().

Ancestors

  • SimpleClass
  • homey.util.event_emitter.EventEmitter
  • typing.Generic

Instance variables

id

var id : Final[str]

The ID of the descriptor assigned by Homey.

uuid

var uuid : Final[str]

value

var value : bytes | None

Methods

read

async def read(self) ‑> bytes

Read the current value of this descriptor.

Raises

NotConnected:

write

async def write(self, data: bytes) ‑> None

Write the data to this descriptor.

Raises

NotConnected:

Inherited members