update_speed_settings
To set speed parameters, use the unit/update_speed_settings method:
svc=unit/update_speed_settings¶ms={"itemId":<long>,
"speedParameter":"<text>",
"speedMeasure":<uint>
}
Parameters
The request must contain the following parameters:
Parameter | Description |
---|---|
itemId | Unit ID. |
speedParameter | Speed parameter (parameter code from the unit message). |
speedMeasure | Parameter of the units of measurement. Numerical. The value is the code of the units of measurement. |
Example
Below is an example of the unit/update_speed_settings request.
svc=unit/update_speed_settings¶ms={
"itemId": 1583, // Unit ID.
"speedParameter": "speed", // Parameter used to determine speed.
"speedMeasure": 0 // Speed measurement system (for example, 0 for km/h, 1 for mph).
}
Response
If the request is completed successfully, an empty object is returned:
{}
If the request fails, an error code is returned.
Error codes
Error code | Description |
---|---|
6 | Failed to update speed parameters. |
7 | No ADF_ACL_ITEM_VIEW_PROPERTIES access right to the unit. |