Cross-platform Bluetooth Low Energy GATT client library for asynchronous BLE communication
Overall
score
97%
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
Install with Tessl CLI
npx tessl i tessl/pypi-bleakdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9