1

Get sensor Data

(05/02/2021 08:31:54 отредактировано samir.agile)

Тема: Get sensor Data

Hello team,

Please provide API to get sensor data from report.
How to add sensor into report template and data of sensor and also please provide to get sensor IDs.

How to get registration plat number of particular unit(vehicle) from profile?

2

Get sensor Data

Re: Get sensor Data

Hello !

The sensor data can be represented in many different report tables. It depends on sensor type.
The all sensors data  can be get from report with table Sensor tracing
So first you need to create sush report template then can execute report via API. Please look example here

To get sensor's IDs - just use the request search_item( or search_items ) with flags = 4096
The JSON response will contain the list of units sensors with their IDs

To get registration plat number from profile fields - the same requests to search items, but with flags = 8388608
https://sdk.wialon.com/wiki/en/sidebar/ … ile_fields

You can sum all required flags to get all data at one JSON response, for example  flag = 8392705 (  8388608+1+4096  ) will return JSON with base data, sensors and profile fields.

Diana Cheley
Wialon Hosting Expert
Gurtam