Struct razberry::RazberryClient [] [src]

pub struct RazberryClient {
    pub last_update: Option<DateTime<UTC>>,
    // some fields omitted
}

Razberry Z-Wave gateway client. Polls the Razberry HTTP endpoint for updates on devices.

Fields

The last time Z-wave device updates were successfully polled. Timestamp is that of the Razberry endpoint (not the program's CPU time).

Methods

impl RazberryClient
[src]

Construct a client from hostname, using the default port.

Construct a client from hostname and port.

Set the session for the cookie manually.

Get the session token.

Set HTTP client read timeout.

Set HTTP client write timeout.

Peform a login. If the attempt is successful, store the session token.

Query the initial data payload for devices (the bare /Data endpoint).

Poll the /Data/{time} endpoint for updates.

Get devices that have been loaded by the client.

Deprecated

Get a full data dump of the state of the Razberry gateway and all of its associated devices.

Deprecated

Get an updated view of the state of the Razberry gateway. This fetches any state changes since the last fetch or update and patches the delta into the 'GatewayState' object.

Deprecated

XXX: DEPRECATED. Get a full data dump of the state of the Razberry server and all of its associated devices.

Deprecated

XXX: DEPRECATED. Get a partial data dump of the state changes to the Razberry server and associated devices that occurred after the provided timestamp.

Deprecated

XXX: DEPRECATED. Fastest way to look up the server timestamp. Calls the data endpoint with an invalid timestamp.

Deprecated

XXX: DEPRECATED. Do lookup at the data endpoint.