|
Lucon SDK 1.0.7
|
Header file defining the full Lucon C API. More...
#include "lucon_base.h"#include "lucon_channel.h"#include "lucon_connection.h"#include "lucon_device.h"Go to the source code of this file.
Functions | |
| LuconResult | LUCON_FreeHandle (LuconHandle handle) |
| Frees the memory and all resources attached to the handle. | |
| LuconResult | LUCON_GetLastApiResult (LuconResult *lastresult, char *const strbuf, const size_t buf_len, size_t *requiredLength) |
| Get the result of the last API call from this thread, including a descriptive message. | |
Header file defining the full Lucon C API.
Contains global Lucon functionality and includes all Lucon API headers.
|
extern |
Get the result of the last API call from this thread, including a descriptive message.
Results of API calls are stored in thread-local storage, except for calls of LUCON_GetLastErrorStatus. The function can be used to retrieve error messages, after an API call failed (LuconResult != LUCON_OK) If the output buffer strbuf is shorter than the full status message, it will be filled with a truncated copy. The full message may be retrieved by repeating the call with a larger buffer with a minimum capacity as returned in requiredLength
| lastresult | A buffer receiveing the result code of the last API. |
| strbuf | A string-buffer retrieving the message related the last API result. NULL |
| buf_len | The capacity of the strbuf |
| requiredLength | A (optional) buffer receiving the required length of the output buffer to receive the full status message |