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 | NoneMethods
read
async def read(self) ‑> bytesRead the current value of this descriptor.
Raises
NotConnected:
write
async def write(self, data: bytes) ‑> NoneWrite the data to this descriptor.
Raises
NotConnected: