I wanted to create a device with initial position such as
Code snippet is as follows
ManagedObjectRepresentation managedObjectRepresentation = new ManagedObjectRepresentation();
As the Position array is not taking multiple values,what are the possible ways of doing it ?
Hi @rushikesh_n ,
why do you want to use an array, can you elaborate on your use case?
- Instead of using the
set method I recommend using the
setProperty method, as it is a bit more convenient to use,
in general your usage of
set is also fine though.
- In the Position object it is “lng” and not “lon” for your information.
Like this you can set the position:
Position position = new Position();