Initializing AgentLite Resources
API Function
This API is used to initialize AgentLite resources.
API Description
1 | HW_INT IOTA_Init(const HW_CHAR *pcWorkPath, const HW_CHAR *pcLogPath);
|
Parameter Description
| Parameter | Mandatory or Optional | Type | Description |
|---|---|---|---|
| pcWorkPath | Mandatory | String | AgentLite working path, which is used to store the AgentLite configuration files and temporary files. The working path must be valid and end with \0. |
| pcLogPath | Optional | String | Log path. If this parameter is left unspecified, logs are written to the working path. The log path must be end with \0. |
Return Value
For details, see Function Return Values.
Example
1 2 | //Call this API to initialize AgentLite resources.
IOTA_Init("/usr/data", HW_NULL);
|
Last Article: Access of Directly Connected Devices
Next Article: Releasing AgentLite Resources
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.