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 command-line tool for configuring BLE device characteristics by writing to their descriptors.
Connect to a BLE device and enable notifications on a characteristic by writing the appropriate value to its Client Characteristic Configuration Descriptor (CCCD).
b'\x01\x00' to the CCCD to enable notifications @testConnect to a BLE device and disable notifications on a characteristic by writing to its CCCD.
b'\x00\x00' to the CCCD to disable notifications @test@generates
async def enable_notifications(device_address: str, characteristic_uuid: str) -> None:
"""
Connect to a BLE device and enable notifications on a characteristic
by writing to its Client Characteristic Configuration Descriptor.
Args:
device_address: The Bluetooth address of the target device
characteristic_uuid: The UUID of the characteristic to enable notifications for
Raises:
ValueError: If the characteristic does not have a CCCD
BleakError: If connection or write operation fails
"""
async def disable_notifications(device_address: str, characteristic_uuid: str) -> None:
"""
Connect to a BLE device and disable notifications on a characteristic
by writing to its Client Characteristic Configuration Descriptor.
Args:
device_address: The Bluetooth address of the target device
characteristic_uuid: The UUID of the characteristic to disable notifications for
Raises:
ValueError: If the characteristic does not have a CCCD
BleakError: If connection or write operation fails
"""Provides Bluetooth Low Energy client functionality for connecting to devices and writing to GATT descriptors.
@satisfied-by