update_traffic_counter

To set a new value for the GPRS traffic counter, use the unit/update_traffic_counter method:

Copied!
svc=unit/update_traffic_counter&params={
    "itemId": <long>,    
    "newValue": <uint>,   
    "regReset": <uint>     
}

Parameters

The request must contain the following parameters:

Parameter Description
itemId Unit ID.
newValue New value of the mileage counter (km).
regReset Log changes: 0 — no, 1 — yes.

Response

If the request is completed successfully, a response in the following format is returned:

Copied!

{
    "cnkb": <uint> /* Value of the GPRS traffic counter. */
}

Otherwise, an error code is returned.

Error codes

Error code Description
4 Wrong input parameters.
6 Failed to update the GPRS traffic counter.
7 No ADF_ACL_AVL_UNIT_EDIT_COUNTERS 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