Reset the object to clear an error condition
- Last UpdatedNov 04, 2024
- 1 minute read
The Reset command is used to clear the current error code and error messages, and to change the object’s status to Ready in the object context. This command applies to all the functions within the SRO object where the reset capability is available (for example, sample commands and characteristic commands).
When this command is triggered, it resets the status and error attributes that belong to the same context as the reset attribute.
For example, a sample group has the following attributes (not all attributes are included for this example):
Sample.ErrorCode
Sample.ErrorMessage
Sample.Status
Sample.ResetCmd
When the Reset command is triggered in the sample context, the error code in the Sample.ErrorCode attribute and the error message in the Sample.ErrorMessage attribute are cleared, and the status in the Sample.Status attribute is set to Ready.
If the Reset command is triggered when the object context is in the Busy state, then the reset is ignored and the error code, error message, and the status is left unchanged.