CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-bleak

Cross-platform Bluetooth Low Energy GATT client library for asynchronous BLE communication

Overall
score

97%

Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This criteria evaluates how effectively the engineer uses the bleak library to read GATT descriptors from BLE device characteristics. It focuses on proper use of BleakClient for connection management, service/characteristic discovery, and descriptor reading operations.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "BleakClient Usage",
      "description": "Uses BleakClient class to establish and manage connection to the BLE device using the provided device_address parameter",
      "max_score": 20
    },
    {
      "name": "Async Context Manager",
      "description": "Uses BleakClient as an async context manager (async with) for automatic connection and disconnection handling",
      "max_score": 15
    },
    {
      "name": "Service Discovery",
      "description": "Accesses the services property or get_services() method of BleakClient to retrieve GATT services after connection",
      "max_score": 15
    },
    {
      "name": "Characteristic Lookup",
      "description": "Locates the target characteristic using the characteristic_uuid parameter, either through service iteration or using service collection methods",
      "max_score": 15
    },
    {
      "name": "Descriptor Iteration",
      "description": "Iterates through the descriptors property of the BleakGATTCharacteristic object to access all descriptors",
      "max_score": 15
    },
    {
      "name": "Descriptor Read",
      "description": "Uses the read_gatt_descriptor() method of BleakClient to read descriptor values, passing either the descriptor object or handle",
      "max_score": 15
    },
    {
      "name": "Return Format",
      "description": "Returns a dictionary mapping descriptor UUIDs (as strings, accessed via descriptor.uuid) to their byte values from read_gatt_descriptor()",
      "max_score": 5
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/pypi-bleak

tile.json