Skip to content

Commit db7f9a1

Browse files
rknegjensdpgeorge
authored andcommitted
aioble/device.py: Make default timeout None for disconnected() method.
The value for the `timeout_ms` optional argument to `DeviceConnection.disconnected()` async method is changed from 60000 to None. This way users awaiting a device disconnection using `await connection.disconnected()` won't be surprised by a 1 minute timeout.
1 parent e7f605d commit db7f9a1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

micropython/bluetooth/aioble-core/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
metadata(version="0.2.0")
1+
metadata(version="0.3.0")
22

33
package(
44
"aioble",

micropython/bluetooth/aioble/aioble/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ def _run_task(self):
212212
async def disconnect(self, timeout_ms=2000):
213213
await self.disconnected(timeout_ms, disconnect=True)
214214

215-
async def disconnected(self, timeout_ms=60000, disconnect=False):
215+
async def disconnected(self, timeout_ms=None, disconnect=False):
216216
if not self.is_connected():
217217
return
218218

micropython/bluetooth/aioble/manifest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# code. This allows (for development purposes) all the files to live in the
44
# one directory.
55

6-
metadata(version="0.4.1")
6+
metadata(version="0.5.0")
77

88
# Default installation gives you everything. Install the individual
99
# components (or a combination of them) if you want a more minimal install.

0 commit comments

Comments
 (0)