RDM command response#
The RDM Command Response object is returned from RDM command (GET or SET) requests. It includes event handlers for the lifecycle of a discovery request.
Event handlers#
started_handler#
The handler has the following signature:
function(command_response)
The handler is called to indicate that the process of sending the command has started.
rx_handler#
The handler has the following signature:
function(command_response, payload)
This handler is called to indicate that response data has been received from the command. It includes:
The response object
payload - the data received. The type of the payload depends on the command, see the table of standard commands.
finished_handler#
The handler has the following signature:
function(command_response)
This handler is called to indicate that the RDM command has finished.
error_handler#
The handler has the following signature:
function(command_response, error, error_message)
If sending the command failed due to errors, error_handler will be called. The error code will be one of those enumerated below.
Error |
Description |
|---|---|
|
The discovery attempt timed out with no responses. |
|
There was an unexpected RDM collision. |
|
An internal error prevented discovery completing. |
|
Other user actions caused the discovery attempt to be cancelled. |
|
The reported length of the returned RDM data was invalid. |
|
The checksum of the returned RDM data was invalid. |
|
The responder cannot interpret the request as controller data was not formatted correctly. |
|
The responder cannot comply due to an internal hardware fault. |
|
Proxy is not the RDM line master and cannot comply with message. |
|
SET Command normally allowed but being blocked currently. |
|
Not valid for Command Class attempted. May be used where GET allowed but SET is not supported. |
|
Value for given Parameter out of allowable range or not supported. |
|
Buffer or Queue space currently has no free space to store data. |
|
Incoming message exceeds buffer capacity. |
|
Sub-Device is out of range or unknown. |
|
The proxy buffer is full and can not store any more Queued Message or Status Message responses. |