1

Creat New Unit

Тема: Creat New Unit

I want know how to create unit with all parameters(unit _id,Pass,Sensors,Commands,Phone....etc)
by using one request if that is possible.

2

Creat New Unit

Re: Creat New Unit

mabed, You can only do it at minimum 2 requests.
Firstly perform core/create_unit request (passing it's name, hw type, data flags).
In response You'll get id of newly created unit.
Then You can set all other unit's parameters using it's id.
You can do it in one request with the help of core/batch request:
http://sdk.wialon.com/wiki/en/sidebar/r … core/batch
http://sdk.wialon.com/wiki/en/sidebar/r … ples/batch

Head of Wialon Local Department
Gurtam
3

Creat New Unit

Re: Creat New Unit

Thanks Deal,
But i need more clarification about how i can
  set all other unit's parameters .