update_speed_settings

To set speed parameters, use the unit/update_speed_settings method:

Copied!
svc=unit/update_speed_settings&params={"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.

Copied!
svc=unit/update_speed_settings&params={
    "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:

Copied!
{}

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.

If you find a mistake in the text, please select it and press Ctrl+Enter.

Report a mistake

Your message was sent. Thank you!

An error occurred while submitting the form

Download PDF file
Download Word document

See also