@mega-yfue/eufy-sdk / StationUnreachableError
Class: StationUnreachableError
Work on a station was refused: its session did not connect within the wait it was given.
A station is reached over its own session, and nothing addressed to it — a media start, a property read, a still — can be attempted before that session is up. Naming this apart from every other failure is what tells a station that could not be reached at all from one that answered and then refused, or one that served media a caller could not use: those call for opposite next steps, and a caller cannot infer which it had from a message.
waitedMs is how long was actually waited, which a caller compares against its own deadline to know whether this SDK concluded or its own bound expired first. stationSn is the station that could not be reached — the parent for an attached camera, so it is not derivable from the serial the call was made about.
Extends
Error
Constructors
Constructor
new StationUnreachableError(
stationSn,
waitedMs,
options?
): StationUnreachableError;Parameters
stationSn
string
The station whose session did not connect.
waitedMs
number
How long the session was waited on before this was raised.
options?
cause?
unknown
Returns
StationUnreachableError
Overrides
Error.constructor
Properties
retryable
readonly retryable: true = true;Always true: a station unreachable now may answer on a later attempt.
stationSn
readonly stationSn: string;The station whose session did not connect.
waitedMs
readonly waitedMs: number;How long the session was waited on before this was raised.