Configuring the Binding Relationship
API Function
This API is used to configure AgentLite parameters.
API Description
1 2 | HW_INT IOTA_ConfigSetStr(HW_INT iItem, HW_CHAR *pValue)
HW_INT IOTA_ConfigSetUint(HW_INT iItem, HW_UINT uiValue)
|
Parameter Description
| Parameter | Mandatory or Optional | Type | Description |
|---|---|---|---|
| key | Mandatory | HW_UINT | Configuration items used for device binding.
|
| value | Mandatory | HW_CHAR * | Value of each configuration item.
|
Return Value
For details, see Function Return Values.
Example
1 2 3 | //Call this API to configure parameters.
IOTA_ConfigSetStr (EN_IOTA_CONFIG_IOCM_ADDR, "10.0.0.1");
IOTA_ConfigSetUint(EN_IOTA_CFG_IOCM_PORT, 8943);
|
Last Article: Releasing AgentLite Resources
Next Article: Binding a Device
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.