@mega-yfue/eufy-sdk / P2P_STATION_WAITS
Variable: P2P_STATION_WAITS
const P2P_STATION_WAITS: object;What a caller's own deadline on a station call has to clear, in milliseconds.
A caller that bounds one of these calls itself races these waits, and a bound below them reports the caller's own expiry in place of the reason this SDK was about to give — the two are indistinguishable to whoever reads the outcome, and they call for different next steps. Published so that bound can be derived rather than copied: a literal in a caller's source is a second source of truth that goes stale silently when these change.
connect applies to every call on a station, because nothing can be addressed to one before its session is up, and it is the session's own connect deadline: a session that reaches it closes itself, so waiting past it waits on a connection that can no longer answer. level2Grace applies twice where the key is required: the negotiation is re-prompted once.
Type Declaration
connect
readonly connect: 45000 = CONNECT_TIMEOUT_MS;level2Grace
readonly level2Grace: 25000 = LEVEL2_GRACE_MS;level2Settle
readonly level2Settle: 8000 = LEVEL2_SETTLE_MS;