Device type and unique ID

To update device (hardware) type and unique ID of a unit, use the command unit/update_device_type:

svc=unit/update_device_type&params={"itemId":<long>,
				    "deviceTypeId":<long>,
				    "uniqueId":<text>}

Parameters

Name Description
itemId unit ID
deviceTypeId new device type
uniqueId new unique ID

You can get all available hardware types using the command get_hw_types.

Response

{
	"uid":<text>,	/* unique ID */
	"hw":<long>	/* hardware type */
}