Creates an instance of ESPCmdRespRequest.
Command-response request fields.
Command id associated with this request.
Device-reported status code.
Epoch timestamp when the request expires.
OptionalindefiniteWhen true, the request has no expiry and waits indefinitely for a device response.
OptionalisWhen true, the request data was base64-encoded.
Target node id.
Payload sent with the command request.
OptionalrequestPresent only when the stored request payload could not be deserialized.
When set, requestData should be treated as absent or null.
The unique request id returned when the command was queued.
Epoch timestamp when the request was created.
OptionalresponsePayload returned by the device, when the request has completed.
OptionalresponsePresent only when the stored response payload could not be deserialized.
When set, responseData should be treated as absent or null.
Epoch timestamp when the device responded.
Current status of the command-response request.
Human-readable status description from the device or backend.
OptionaluserUsername of the user who created this request.
Updates this instance in place from command-response request fields.
Command-response request fields.
Cancels this pending command-response request and updates status
to cancelled in place.
Cancellation status and count of removed requests.
Fetches the latest command-response state from the cloud and updates this instance in place.
This instance with refreshed fields, or null when no record exists.
Represents a command-response request in the ESP RainMaker SDK.
Returned by ESPRMNode.createCmdRespRequest, ESPRMUser.createCmdRespRequest, and list/lookup helpers. Use getStatus to fetch the latest state from the cloud and cancel to cancel a pending request.