Topic: 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.
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.
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
Thanks Deal,
But i need more clarification about how i can
set all other unit's parameters .