Sternum Embedded SDK
|
Provides API for Sternum SDK usage. More...
#include "sternum_sdk/api/sternum_error_codes.h"
#include "sternum_sdk/api/sternum_settings.h"
#include "sternum_sdk/api/sternum_trace_api.h"
Go to the source code of this file.
Functions | |
sternum_code_t | sternum_sdk_initialize (sternum_sdk_settings_t *settings) |
Initializes the Sternum SDK. More... | |
sternum_code_t | sternum_sdk_flush (void) |
Flush transmission queue. More... | |
size_t | sternum_sdk_cached_traces_count (void) |
Returns a number of pending traces in cache buffer. More... | |
size_t | sternum_sdk_cache_space_available (void) |
Returns available space in packets buffer [bytes]. More... | |
void | sternum_sdk_close (void) |
Closes the Sternum SDK. More... | |
Provides API for Sternum SDK usage.
size_t sternum_sdk_cache_space_available | ( | void | ) |
Returns available space in packets buffer [bytes].
size_t sternum_sdk_cached_traces_count | ( | void | ) |
Returns a number of pending traces in cache buffer.
void sternum_sdk_close | ( | void | ) |
Closes the Sternum SDK.
Call initialize to reinitialize.
sternum_code_t sternum_sdk_flush | ( | void | ) |
Flush transmission queue.
This function will send all cached traces to the cloud.
sternum_code_t sternum_sdk_initialize | ( | sternum_sdk_settings_t * | settings | ) |
Initializes the Sternum SDK.
This function initializes the Sternum SDK with the provided settings. After successful initialization Sternum SDK is ready to use. The provided settings structure is copied internally for use within the program, ensuring that any changes to the original structure will not affect the functionality.
settings | Pointer to configured SDK settings structure. |