Gets the underlying ElkConnection.
The default number of milliseconds to wait for a command response before returning a timeout error.
True if the underlying connection is connected.
True if the client is in a ready state and is able to communicate with the Elk M1.
The client's current state.
Attempts to connect (and authenticate, if needed) to the Elk M1. Resolves when the client become ready, or rejects if there is an error or if a ready state cannot be reached within the timeout period.
How long to wait for the client to become ready.
Disconnects the current connection and resolves when completed.
Sends a command to the Elk M1 control panel.
Helper method for sending a command and waiting for an "OK" response.
Sends a command and waits for a {@link ElkResponse}
The command to send
A predicate function that is called for every response that is recevied and should return true when a response matches an expected response to the command that was sent.
Helper method for sending a command and waiting for a response that matches the type of response class given.
Useful for commands that only need to check the type of response message, and not any of it's underlying data.
Waits for an "OK" response and resolves when it is found, or rejects if it is not found within the timeout time.
Waits for a response that matches the predicate provided and resolves when it is found, or rejects if it is not found within the timeframe.
Generated using TypeDoc
True if the currently authenticated; otherwise, false.