1

How can I get all name sensors of an unit?

Тема: How can I get all name sensors of an unit?

Using Wialon Hosting how can I get a list of all sensors of an unit.
I have the unit id. I can get last value of sensors...

https://hst-api.wialon.com/wialon/ajax.html?svc=unit/calc_last_message&sid=0...2&params={"unitId":1...0, "sensors":"", "flags":1}

but I don't know name for each one.

2

How can I get all name sensors of an unit?

Re: How can I get all name sensors of an unit?

Call core/search_item for your unit with sensors 0x1000 flag.

3

How can I get all name sensors of an unit?

Re: How can I get all name sensors of an unit?

Thanks, here is an example:

https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items&sid=[sessionID]&params={
  "spec":{
     "itemsType":"avl_unit",
     "propName": "sys_id",
     "propValueMask": "[unitID]",
     "sortType":"sys_id",
     "propType":"property"},
  "force":1,
  "flags":4096,
  "from":0,
  "to":0}