get_hw_types

The get_hw_types function is used to get the list of available hardware types.

Copied!
svc=core/get_hw_types&params={"filterType":"<text>",
			      "filterValue":["<text>"|<uint>],
			      "includeType":<bool>,
			      "ignoreRename":<bool>}

Parameters

All parameters are optional.

NameDescription

filterType

Filter type:

  • name;
  • id;
  • type;
  • feature.

filterValue

The array of filter values (comma-delimited). The values for different filterType can be as follows:

  • name  full device name(s);
  • id  device ID/IDs;
  • type  values (auto, tracker, mobile, soft).

includeType

The flag, which is responsible for showing the device type in the returned result. The default value is false.

ignoreRename

The flag, which is responsible for ignoring the renaming of the device type. The default value is false.

Returned result

Copied!
[		/* hardware types */
	{
	    "id":<uint>,		/* ID */
	    "uid2":<uint>,		/* second ID */
	    "name":"<text>",		/* name */
	    "hw_category":"<text>",	/* hardware type */
		"hw_features":"<text>", /* hardware features */
	    "tp":"<text>",		/* TCP port */
	    "up":"<text>" 		/* UDP port */
	},
	...
]

If you find a mistake in the text, please select it and press Ctrl+Enter.

Your message was sent. Thank you!

Report a mistake

An error occurred while submitting the form

Download PDF file
Download Word document

See also