Microchip® Advanced Software Framework

aws_iot_shadow_records.h File Reference
#include <stdbool.h>
#include "aws_iot_shadow_interface.h"
#include "aws_iot_config.h"

Functions

void addToAckWaitList (uint8_t indexAckWaitList, const char *pThingName, ShadowActions_t action, const char *pExtractedClientToken, fpActionCallback_t callback, void *pCallbackContext, uint32_t timeout_seconds)
 
bool getNextFreeIndexOfAckWaitList (uint8_t *pIndex)
 
void HandleExpiredResponseCallbacks (void)
 
void incrementSubscriptionCnt (const char *pThingName, ShadowActions_t action, bool isSticky)
 
void initDeltaTokens (void)
 
void initializeRecords (MQTTClient_t *pClient)
 
bool isSubscriptionPresent (const char *pThingName, ShadowActions_t action)
 
IoT_Error_t publishToShadowAction (const char *pThingName, ShadowActions_t action, const char *pJsonDocumentToBeSent)
 
IoT_Error_t registerJsonTokenOnDelta (jsonStruct_t *pStruct)
 
IoT_Error_t subscribeToShadowActionAcks (const char *pThingName, ShadowActions_t action, bool isSticky)
 

Variables

char mqttClientID [MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES]
 
char myThingName [MAX_SIZE_OF_THING_NAME]
 
bool shadowDiscardOldDeltaFlag
 
uint32_t shadowJsonVersionNum
 

void addToAckWaitList ( uint8_t  indexAckWaitList,
const char *  pThingName,
ShadowActions_t  action,
const char *  pExtractedClientToken,
fpActionCallback_t  callback,
void *  pCallbackContext,
uint32_t  timeout_seconds 
)
bool getNextFreeIndexOfAckWaitList ( uint8_t *  pIndex)

References i, and NULL.

Referenced by iot_shadow_action().

void incrementSubscriptionCnt ( const char *  pThingName,
ShadowActions_t  action,
bool  isSticky 
)
void initDeltaTokens ( void  )
bool isSubscriptionPresent ( const char *  pThingName,
ShadowActions_t  action 
)

char mqttClientID[MAX_SIZE_OF_UNIQUE_CLIENT_ID_BYTES]
char myThingName[MAX_SIZE_OF_THING_NAME]