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 |
Specifies the AgentLite working path for storing AgentLite configuration files and generated temporary files. The working path must be valid and end with \0. |
pcLogPath |
Optional |
String |
Specifies the 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 4.2 Function Return Values.
Example
1 2 |
//Developers call this API to initialize AgentLite resources.
IOTA_Init("/usr/data", HW_NULL);
|
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot