Table of Contents

Conversion

To convert an item to another measurement, use the command item/update_measure_units:

svc=item/update_measure_units&params={"itemId":<long>,
				      "type":<uint>,
				      "flags":<uint>}

Parameters

Name Description
itemId item ID
type target measurement (0 - metric,1 - U.S.,2 - imperial)
flags 0 - set measurement, 1 - convert values and set measurement

Response

{}	/* empty object if execution successful, if not - error code */
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam