From 847ee20d9b18c36e2160aaadfe71d2f7814648b1 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 19 Jul 2024 17:46:33 +1000 Subject: [PATCH] tests/multi_bluetooth/perf_gatt_notify.py: Reduce connection interval. To test that the notification ping-pong can be low latency. Signed-off-by: Damien George --- tests/multi_bluetooth/perf_gatt_notify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/multi_bluetooth/perf_gatt_notify.py b/tests/multi_bluetooth/perf_gatt_notify.py index 8acccc6470..ac791a3ebf 100644 --- a/tests/multi_bluetooth/perf_gatt_notify.py +++ b/tests/multi_bluetooth/perf_gatt_notify.py @@ -110,9 +110,9 @@ def instance1(): ((char_handle,),) = ble.gatts_register_services(SERVICES) multitest.next() try: - # Connect to peripheral and then disconnect. + # Connect to peripheral, with a short connection interval to reduce notify latency. print("gap_connect") - ble.gap_connect(*BDADDR) + ble.gap_connect(BDADDR[0], BDADDR[1], 2000, 12500, 12500) conn_handle = wait_for_event(_IRQ_PERIPHERAL_CONNECT, TIMEOUT_MS) # Discover characteristics.