Updated on 2022-02-24 GMT+08:00

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);