#include <stdint.h>
#include <stdbool.h>
#include <stdarg.h>
#include "AWS_SDK/aws_iot_src/utils/aws_iot_error.h"
#include "aws_iot_shadow_json_data.h"
Functions | |
bool | extractClientToken (const char *pJsonDocumentToBeSent, char *pExtractedClientToken) |
bool | extractVersionNumber (const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount, uint32_t *pVersionNumber) |
void | FillWithClientToken (char *pStringToUpdateClientToken) |
void | iot_shadow_delete_request_json (char *pJsonDocument) |
void | iot_shadow_get_request_json (char *pJsonDocument) |
bool | isJsonKeyMatchingAndUpdateValue (const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount, jsonStruct_t *pDataStruct, uint32_t *pDataLength, int32_t *pDataPosition) |
bool | isJsonValidAndParse (const char *pJsonDocument, void *pJsonHandler, int32_t *pTokenCount) |
bool | isReceivedJsonValid (const char *pJsonDocument) |
void | resetClientTokenSequenceNum (void) |
bool extractClientToken | ( | const char * | pJsonDocumentToBeSent, |
char * | pExtractedClientToken | ||
) |
References jsmntok_t::end, jsmn_init(), JSMN_OBJECT, jsmn_parse(), jsoneq(), SHADOW_CLIENT_TOKEN_STRING, jsmntok_t::start, and WARN.
Referenced by AckStatusCallback(), and iot_shadow_action().
bool extractVersionNumber | ( | const char * | pJsonDocument, |
void * | pJsonHandler, | ||
int32_t | tokenCount, | ||
uint32_t * | pVersionNumber | ||
) |
References jsmntok_t::end, jsoneq(), NONE_ERROR, parseUnsignedInteger32Value(), SHADOW_VERSION_STRING, and jsmntok_t::start.
Referenced by AckStatusCallback(), and shadow_delta_callback().
void FillWithClientToken | ( | char * | pStringToUpdateClientToken | ) |
References clientTokenNum, and mqttClientID.
Referenced by emptyJsonWithClientToken().
void iot_shadow_delete_request_json | ( | char * | pJsonDocument | ) |
References emptyJsonWithClientToken().
Referenced by aws_iot_shadow_delete().
void iot_shadow_get_request_json | ( | char * | pJsonDocument | ) |
References emptyJsonWithClientToken().
Referenced by aws_iot_shadow_get().
bool isJsonKeyMatchingAndUpdateValue | ( | const char * | pJsonDocument, |
void * | pJsonHandler, | ||
int32_t | tokenCount, | ||
jsonStruct_t * | pDataStruct, | ||
uint32_t * | pDataLength, | ||
int32_t * | pDataPosition | ||
) |
References jsmntok_t::end, jsoneq(), jsonStruct::pKey, jsmntok_t::start, and UpdateValueIfNoObject().
Referenced by shadow_delta_callback().
bool isJsonValidAndParse | ( | const char * | pJsonDocument, |
void * | pJsonHandler, | ||
int32_t * | pTokenCount | ||
) |
References jsmn_init(), JSMN_OBJECT, jsmn_parse(), and WARN.
Referenced by AckStatusCallback(), and shadow_delta_callback().
bool isReceivedJsonValid | ( | const char * | pJsonDocument | ) |
References jsmn_init(), JSMN_OBJECT, jsmn_parse(), and WARN.
void resetClientTokenSequenceNum | ( | void | ) |
References clientTokenNum.
Referenced by aws_iot_shadow_init().