Activation
DMS activation operations. More...
Functions | |
zos_result_t | zn_dms_activate (const char *product_code, zos_buffer_t *server_msg) |
Activate this device with the specified product. More... | |
Detailed Description
DMS activation operations.
Function Documentation
zos_result_t zn_dms_activate | ( | const char * | product_code, |
zos_buffer_t * | server_msg |
||
) |
Activate this device with the specified product.
Once activated, device updates with get this product's firmware.
Before the device can activate to a product it needs to be 'claimed' by your DMS account. The device is automatically claimed when developing with the SDK. In the field, a device should be claimed during manufacturing.
See the ZentriOS command documentation for more information: dms
- Note
- The
server_msg
argument, a zos_buffer_t, should be pre-configured to point to a buffer that will be populated with a message from the server. The.data
member should point to a string buffer. Thesize
to be the size of the string buffer.
- Parameters
-
product_code
Product's code in DMS [out] server_msg
zos_buffer_t pointer to buffer to hold message from server, leave NULL if unused
- Returns
- Result of API, see zos_result_t