Skip to content

Commit 1346829

Browse files
authored
Merge pull request #184 from adafruit/dhalbert-patch-1
Increase default connect timeout to 10 seconds
2 parents 610b185 + 9423e9f commit 1346829

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_ble/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def stop_scan(self) -> None:
297297
self._adapter.stop_scan()
298298

299299
def connect(
300-
self, peer: Union[Advertisement, _bleio.Address], *, timeout: float = 4.0
300+
self, peer: Union[Advertisement, _bleio.Address], *, timeout: float = 10.0
301301
) -> BLEConnection:
302302
"""
303303
Initiates a `BLEConnection` to the peer that advertised the given advertisement.

0 commit comments

Comments
 (0)