Creating New Units

(edited by jisnajoby03 24/02/2023 00:51:16)

Topic: Creating New Units

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.


Creating New Units

Re: Creating New Units

You can find some examples in playground