DCTag SDK: dc_tag_init

DCTag SDK 1.2.1

DCTag SDK  1.2.1
Copyright © 1983-2016 Advantech Co., Ltd.
int dc_tag_init ( uint32_t  max_tag_count,
DC_TAG_CALLBACK callback,
void *  user_context 
)

Initialize the DCTag SDK.


Before any other API can be used correctly, you must call this function once and only once to perform a runtime initialization firstly.

Parameters
[in]max_tag_countthe max tag count you will handle in your application.
[in]callbackthe callback function pointer, in struct dc_tag_callback. If your application will not add any tag to the DataCenter, you can ignore this parameter and give a NULL value.
[in]user_contextthe context pointer, which will be passed in the callback functions.
Returns
On success, zero is returned, otherwise an error code is returned. please refer to the enum dc_tag_error_code for the error code description.
See also
dc_tag_callback
Examples:
dc_tag_owner.c, dc_tag_read.c, dc_tag_read_subscription.c, dc_tag_update.c, and dc_tag_write.c.
Generated on Thu May 19 2016 14:18:17 for DCTag SDK by   doxygen 1.8.11