change serial setup timeout delay

This commit is contained in:
Florent 2025-07-10 12:34:27 +02:00
parent 21cbed070a
commit 190fde8a45

View file

@ -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