import asyncio
from bleak import BleakClient

async def connect(address):
    print(f"Connecting to {address}...")
    try:
        async with BleakClient(address) as client:
            print(f"✓ Connected: {client.is_connected}")
            print("\nServices and Characteristics:")
            for service in client.services:
                print(f"\n  Service: {service.uuid}")
                for char in service.characteristics:
                    print(f"    Char: {char.uuid}")
                    print(f"      Properties: {char.properties}")
                    # Check if this looks like the audio characteristic
                    if '19B10001' in char.uuid.upper():
                        print(f"      *** AUDIO CHARACTERISTIC FOUND ***")
    except Exception as e:
        print(f"✗ Error: {e}")

asyncio.run(connect("BD3FF870-B161-ACF9-84B5-2A6B0963C2BF"))
