update_eh_counter
To set a new value for the counter of engine hours, use the unit/update_eh_counter command.
svc=unit/update_device_type & params = {
"itemId": <long>,
"deviceTypeId": <long>,
"uniqueId": <text>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
newValue | New value of the engine hours counter (h). Must be within the range of 0 to 0xFFFFFFFF. |
Response
If the request is completed successfully, a response in the following format is returned:
{
"cneh": <uint> /* Value of the engine hours counter (h). */
}
Otherwise, an error code is returned.
Error codes
Error code | Description |
---|---|
4 | Wrong input parameters. |
6 | Failed to update the engine hours counter. |
7 | No ADF_ACL_AVL_UNIT_EDIT_COUNTERS access right to the unit. |