From f1277bc7bcde18c68d8ca03d37ff7d135eb877c3 Mon Sep 17 00:00:00 2001 From: agessaman Date: Mon, 13 Oct 2025 17:44:15 -0700 Subject: [PATCH] lower ble connection debug threshold --- debug_ble_connection.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/debug_ble_connection.py b/debug_ble_connection.py index ef9415c..ec6fea0 100755 --- a/debug_ble_connection.py +++ b/debug_ble_connection.py @@ -17,23 +17,9 @@ async def test_ble_connection(address, name): meshcore = await asyncio.wait_for(MeshCore.create_ble(address=address, debug=True), timeout=10.0) print("✅ Connection successful!") - print("2. Waiting for device to stabilize and receive device information...") - await asyncio.sleep(3) + print("2. Connection verification successful - device is paired and ready") - print("3. Testing device communication via self_info...") - try: - if hasattr(meshcore, 'self_info') and meshcore.self_info: - device_name = meshcore.self_info.get('name', 'Unknown') - print(f"✅ Device name from self_info: {device_name}") - print("✅ Device communication verified successfully") - else: - print("⚠️ Device connected but self_info not yet available") - print("✅ Device is paired and ready (self_info will be available during normal operation)") - except Exception as info_e: - print(f"⚠️ self_info check failed: {info_e}") - print("✅ Device is connected but self_info check failed") - - print("4. Disconnecting...") + print("3. Disconnecting...") await meshcore.disconnect() print("✅ Disconnected successfully")