mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-06-11 11:56:18 +00:00
change serial setup timeout delay
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user