Counter of mileage

To set a new value for mileage counter, use the command unit/update_mileage_counter:

svc=unit/update_mileage_counter&params={"itemId":<long>,
					"newValue":<uint>}

:!: You can find an example of this request in the sample Creating, editing and deleting items.

Parameters

Name Description
itemId unit ID
newValue new value of mileage counter (km)

newValue value shouldn't exceed 4294967.

Response

{
	"cnm":<uint>	/* value of mileage counter */
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam