Skip to content

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

ts
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 ​

ts
readonly retryable: true = true;

Always true: a station unreachable now may answer on a later attempt.


stationSn ​

ts
readonly stationSn: string;

The station whose session did not connect.


waitedMs ​

ts
readonly waitedMs: number;

How long the session was waited on before this was raised.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.