The following APIs are provided for the dynamic library interface for connection.
Function | Description |
---|---|
criAcApiClient_Initialize | Initializes the connection library |
criAcApiClient_Finalize | Terminates the connection library |
criAcApiClient_Connect | Connects with CRI Atom Craft |
criAcApiClient_Disconnect | Disconnects with CRI Atom Craft |
criAcApiClient_GetStatus | Obtains the connection status with CRI Atom Craft |
criAcApiClient_Call | Sends the command string to CRI Atom Craft, and waits for completion |
criAcApiClient_GetResponseBufferLength | Gets the length of JSON string storing the API execution result in CRI Atom Craft |
criAcApiClient_GetResponseBuffer | Gets the JSON string storing the API execution result in CRI Atom Craft |
Initializes the connection library.
None
0 if succeed, non-zero value if failed
Terminates the connection library.
None
None
Connects with CRI Atom Craft.
Name | Value |
---|---|
hostIpAddress | IP address of CRI Atom Craft |
port | Port number used for connection |
0 if succeed, non-zero value if failed
Disconnects with CRI Atom Craft.
None
None
Obtains the connection status with CRI Atom Craft.
None
0 if connected, non-zero value if not connected
Sends the command string to CRI Atom Craft, and waits for completion.
Name | Value |
---|---|
hostIpAddress | IP address of CRI Atom Craft |
port | Port number used for connection |
0 or above if succeed
Less than 0 if failed
Gets the length of JSON string storing the API execution result in CRI Atom Craft.
None
Length of JSON string(excluding null character)
Gets the JSON string storing the API execution result in CRI Atom Craft. The buffer requires the length of null character in addition to criAcApiClient_GetResponseBufferLength .
Therefore, you need a buffer with a length of at least criAcApiClient_GetResponseBufferLength plus 1.
Name | Value |
---|---|
buffer | String buffer for writing the API execution result string |
buffer_length | Length of the string that can be written to the buffer |
0 if succeed, non-zero value if failed