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
An abstract client implementation of sending/receiving specific messages from the Elk M1.
This is just a way to declutter the client and separate out the specific command implementations.