tessl install tessl/pypi-bleak@1.1.0Cross-platform Bluetooth Low Energy GATT client library for asynchronous BLE communication
Agent Success
Agent success rate when using this tile
97%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.07x
Baseline
Agent success rate without this tile
91%
A utility that connects to a Bluetooth Low Energy device and reads configuration metadata from GATT descriptors.
@generates
from typing import Dict
async def read_characteristic_descriptors(device_address: str, characteristic_uuid: str) -> Dict[str, bytes]:
"""
Connects to a BLE device and reads all descriptors for a specified characteristic.
Args:
device_address: The Bluetooth address of the device to connect to
characteristic_uuid: The UUID of the characteristic whose descriptors to read
Returns:
A dictionary mapping descriptor UUIDs (as strings) to their values (as bytes)
Raises:
BleakError: If connection fails or characteristic is not found
"""
passProvides Bluetooth Low Energy GATT client functionality for device connection and descriptor reading.
@satisfied-by