Add/remove units

To add or remove units to/from a retranslator, use the command retranslator/update_units:

svc=retranslator/update_units&params={"itemId":<long>,
				      "units":[{"a":<text>,
						"i":<long>,
						"st":<uint>}, ...],
				      "callMode":<text>
 
}

:!: Use callMode to apply diff or descride all units in “units” array.

Parameters

Name Description
itemId retranslator ID
units array of units IDs for retranslation
i unit ID
a hardware unique ID
st time, when retranslation will be stopped (optional parameter)
callMode mode: add/remove (optional)

Response

{
	"rtru":[
		{
			"i":<long>,	/* unit ID */
			"a":<text>,	/* hardware unique ID */
			"st":<uint>	/* time, when retranslation will be stopped */
		}
	]
}
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2020 Gurtam