mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
change serial setup timeout delay
This commit is contained in:
parent
21cbed070a
commit
190fde8a45
1 changed files with 2 additions and 2 deletions
|
|
@ -70,7 +70,7 @@ class MeshCore:
|
|||
auto_reconnect: bool = False, max_reconnect_attempts: int = 3) -> 'MeshCore':
|
||||
"""Create and connect a MeshCore instance using serial connection"""
|
||||
connection = SerialConnection(port, baudrate)
|
||||
await asyncio.sleep(0.1) # Time for transport to establish
|
||||
await asyncio.sleep(0.2) # Time for transport to establish
|
||||
|
||||
mc = cls(connection, debug=debug, default_timeout=default_timeout,
|
||||
auto_reconnect=auto_reconnect, max_reconnect_attempts=max_reconnect_attempts)
|
||||
|
|
@ -327,4 +327,4 @@ class MeshCore:
|
|||
if not self._contacts:
|
||||
await self.commands.get_contacts()
|
||||
return True
|
||||
return False
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue