diff options
| author | Damien George <damien@micropython.org> | 2024-07-19 17:46:33 +1000 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-07-19 22:28:31 +1000 |
| commit | 847ee20d9b18c36e2160aaadfe71d2f7814648b1 (patch) | |
| tree | 4584cf7db3543ba7b562307253a42284842401ef | |
| parent | 77bd8fe5b80b0e7e02cdb6b4272c401ae3dca638 (diff) | |
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 <damien@micropython.org>
| -rw-r--r-- | tests/multi_bluetooth/perf_gatt_notify.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/multi_bluetooth/perf_gatt_notify.py b/tests/multi_bluetooth/perf_gatt_notify.py index 8acccc647..ac791a3eb 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. |
