35 #ifndef SWI_AIRVANTAGE_INCLUDE_GUARD
36 #define SWI_AIRVANTAGE_INCLUDE_GUARD
39 #include "returncodes.h"
53 #define SWI_AV_ERROR 1
73 #define SWI_AV_CX_SYNC UINT_MAX
117 const char* policyPtr
147 const char* assetIdPtr
201 typedef enum swi_av_timestamp{
224 const char* policyPtr,
251 const char* policyPtr,
277 const char* policyPtr,
327 const char** columnNamesPtr,
328 const char* policyPtr,
445 swi_dset_Iterator_t* data,
511 const char* errMsgPtr,
512 const char* policyPtr,
563 const char* componentNamePtr,
564 const char* versionPtr,
566 const char *updateFilePathPtr,
568 swi_dset_Iterator_t* customParams,
621 const char* componentNamePtr,
rc_ReturnCode_t swi_av_Destroy()
rc_ReturnCode_t swi_av_table_PushInteger(swi_av_Table_t *table, int value)
rc_ReturnCode_t swi_av_asset_PushString(swi_av_Asset_t *asset, const char *pathPtr, const char *policyPtr, uint32_t timestamp, const char *valuePtr)
rc_ReturnCode_t swi_av_Init()
rc_ReturnCode_t swi_av_table_Destroy(swi_av_Table_t *table)
rc_ReturnCode_t swi_av_ConnectToServer(unsigned int latency)
rc_ReturnCode_t swi_av_asset_PushInteger(swi_av_Asset_t *asset, const char *pathPtr, const char *policyPtr, uint32_t timestamp, int64_t value)
rc_ReturnCode_t swi_av_RegisterUpdateNotification(swi_av_Asset_t *asset, swi_av_updateNotificationCB cb, void *userDataPtr)
swi_av_Table_Storage_t
Definition: swi_airvantage.h:303
rc_ReturnCode_t swi_av_asset_Destroy(swi_av_Asset_t *asset)
rc_ReturnCode_t swi_av_asset_Create(swi_av_Asset_t **asset, const char *assetIdPtr)
rc_ReturnCode_t swi_av_table_PushFloat(swi_av_Table_t *table, double value)
rc_ReturnCode_t swi_av_asset_PushFloat(swi_av_Asset_t *asset, const char *pathPtr, const char *policyPtr, uint32_t timestamp, double value)
rc_ReturnCode_t swi_av_table_PushRow(swi_av_Table_t *table)
struct swi_av_Asset swi_av_Asset_t
Definition: swi_airvantage.h:127
rc_ReturnCode_t swi_av_table_PushString(swi_av_Table_t *table, const char *value)
rc_ReturnCode_t swi_av_SendUpdateResult(swi_av_Asset_t *asset, const char *componentNamePtr, int updateResult)
struct swi_av_Table swi_av_Table_t
Definition: swi_airvantage.h:298
rc_ReturnCode_t swi_av_Acknowledge(int ackId, int status, const char *errMsgPtr, const char *policyPtr, int persisted)
rc_ReturnCode_t swi_av_RegisterDataWrite(swi_av_Asset_t *asset, swi_av_DataWriteCB cb, void *userDataPtr)
rc_ReturnCode_t swi_av_asset_Start(swi_av_Asset_t *asset)
rc_ReturnCode_t swi_av_table_Create(swi_av_Asset_t *asset, swi_av_Table_t **table, const char *pathPtr, size_t numColumns, const char **columnNamesPtr, const char *policyPtr, swi_av_Table_Storage_t persisted, int purge)
Persistent, everything is saved to the FLASH memory.
Definition: swi_airvantage.h:306
rc_ReturnCode_t(* swi_av_updateNotificationCB)(swi_av_Asset_t *asset, const char *componentNamePtr, const char *versionPtr, const char *updateFilePathPtr, swi_dset_Iterator_t *customParams, void *userDataPtr)
Definition: swi_airvantage.h:561
Explicitly request no timestamp to send alongside the data.
Definition: swi_airvantage.h:202
rc_ReturnCode_t swi_av_TriggerPolicy(const char *policyPtr)
void(* swi_av_DataWriteCB)(swi_av_Asset_t *asset, const char *pathPtr, swi_dset_Iterator_t *data, int ack_id, void *userDataPtr)
Definition: swi_airvantage.h:442
Non persistent, everything is saved only in RAM.
Definition: swi_airvantage.h:305
Timestamp will be automatically generated when the data is added.
Definition: swi_airvantage.h:203
swi_av_timestamp_t
Definition: swi_airvantage.h:201