bump timeout to 30s to deal with modem slowness.

This commit is contained in:
Brian Harrison
2026-03-31 12:12:36 -04:00
parent de02f9cccf
commit 8074bf0fee
2 changed files with 5 additions and 4 deletions

View File

@@ -152,10 +152,11 @@ def _build_client(
Raises HTTPException(422) if neither is provided.
"""
if host:
# TCP / modem / ACH path
# TCP / modem / ACH path — use a longer timeout to survive cold boots
# (unit takes 5-15s to wake from RS-232 line assertion over cellular)
transport = TcpTransport(host, port=tcp_port)
log.debug("TCP transport: %s:%d", host, tcp_port)
return MiniMateClient(transport=transport)
return MiniMateClient(transport=transport, timeout=30.0)
elif port:
# Direct serial path
log.debug("Serial transport: %s baud=%d", port, baud)