Skip to content

Commit 456c553

Browse files
committed
UARTClient: service_uuids -> service_uuids_whitelist
1 parent cf11c77 commit 456c553

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_ble/uart_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class UARTClient:
4949
uart_client = UARTClient()
5050
uart_addresses = uart_client.scan()
5151
if uart_addresses:
52-
uart_client.connect(uarts[0].address, 5, service_uuids=(UART.NUS_SERVICE_UUID,))
52+
uart_client.connect(uarts[0].address, 5, service_uuids_whitelist=(UART.NUS_SERVICE_UUID,))
5353
else:
5454
raise Error("No UART servers found.")
5555
@@ -69,7 +69,7 @@ def connect(self, address, timeout):
6969
:param float/int timeout: Try to connect for ``timeout`` seconds.
7070
Not related to the timeout passed to ``UARTClient()``.
7171
"""
72-
self._central.connect(address, timeout, service_uuids=(NUS_SERVICE_UUID,))
72+
self._central.connect(address, timeout, service_uuids_whitelist=(NUS_SERVICE_UUID,))
7373

7474
# Connect succeeded. Get the remote characteristics we need, which were
7575
# found during discovery.

0 commit comments

Comments
 (0)