1

Creating New Units

(24/02/2023 00:51:16 отредактировано jisnajoby03)

Тема: Creating New Units

Hi,
In the remote api documentation, I have found methods for updating profile fields, updating sensor data etc for  newly created units. But in the wialonjs library, I found createUnit method in "wialon.core.Session" using which, hardware type, unit name can be set for a newly created unit. Also, some methods in "wialon.item.unit"  such as setPhoneNumber, setUniqueId, etc for setting some of the fields of  "General properties" tab. But how can I set properties of other tabs like  "Sensors, Custom Fields, Profile" which have the fields like registration plate, fuel tank size, VIN, sensor data, custom properties while creating a new unit using wialonjs library. Could you please help me with this.

2

Creating New Units

Re: Creating New Units

You can find some examples in playground

https://sdk.wialon.com/playground/demo/get_sensors
https://sdk.wialon.com/playground/demo/edit_sensors
https://sdk.wialon.com/playground/demo/unit_edit_fields