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 tool that monitors and reports the connection status of Bluetooth Low Energy devices.
Implement a monitor that tracks whether a BLE device is currently connected. The monitor should:
@generates
class ConnectionMonitor:
"""Monitors the connection status of a BLE device."""
def __init__(self, device_address: str):
"""
Initialize the connection monitor for a specific device.
Args:
device_address: The Bluetooth address of the device to monitor
"""
pass
async def is_connected(self) -> bool:
"""
Check if the device is currently connected.
Returns:
True if connected, False otherwise
"""
pass
async def connect(self) -> None:
"""
Establish a connection to the device.
Raises:
Exception if connection fails
"""
pass
async def disconnect(self) -> None:
"""
Disconnect from the device if currently connected.
"""
passProvides Bluetooth Low Energy support for device connection and status checking.
@satisfied-by