bumps timeout up
This commit is contained in:
@@ -66,7 +66,7 @@ class MiniMateClient:
|
|||||||
self,
|
self,
|
||||||
port: str,
|
port: str,
|
||||||
baud: int = 38_400,
|
baud: int = 38_400,
|
||||||
timeout: float = 5.0,
|
timeout: float = 15.0,
|
||||||
transport: Optional[BaseTransport] = None,
|
transport: Optional[BaseTransport] = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
self.port = port
|
self.port = port
|
||||||
|
|||||||
@@ -80,9 +80,10 @@ DATA_LENGTHS: dict[int, int] = {
|
|||||||
# NOT handled here — requires specialised read logic.
|
# NOT handled here — requires specialised read logic.
|
||||||
}
|
}
|
||||||
|
|
||||||
# Default timeout values (seconds)
|
# Default timeout values (seconds).
|
||||||
DEFAULT_RECV_TIMEOUT = 3.0
|
# MiniMate Plus is a slow device — keep these generous.
|
||||||
POLL_RECV_TIMEOUT = 2.0
|
DEFAULT_RECV_TIMEOUT = 10.0
|
||||||
|
POLL_RECV_TIMEOUT = 10.0
|
||||||
|
|
||||||
|
|
||||||
# ── Exception ─────────────────────────────────────────────────────────────────
|
# ── Exception ─────────────────────────────────────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user