16 #ifndef SRC_SHADOW_AWS_IOT_SHADOW_JSON_DATA_H_
17 #define SRC_SHADOW_AWS_IOT_SHADOW_JSON_DATA_H_
JsonPrimitiveType type
type of JSON
Definition: aws_iot_shadow_json_data.h:61
void(* jsonStructCallback_t)(const char *pJsonValueBuffer, uint32_t valueLength, jsonStruct_t *pJsonStruct_t)
Every JSON name value can have a callback. The callback should follow this signature.
Definition: aws_iot_shadow_json_data.h:34
void * pData
pointer to the data (JSON value)
Definition: aws_iot_shadow_json_data.h:60
IoT_Error_t aws_iot_shadow_add_desired(char *pJsonDocument, size_t maxSizeOfJsonDocument, uint8_t count,...)
Add the desired section of the JSON document of jsonStruct_t.
Definition: aws_iot_shadow_json.c:77
IoT_Error_t
IoT Error enum.
Definition: aws_iot_error.h:36
const char * pKey
JSON key.
Definition: aws_iot_shadow_json_data.h:59
JsonPrimitiveType
All the JSON object types enum.
Definition: aws_iot_shadow_json_data.h:41
This is the struct form of a JSON Key value pair.
Definition: aws_iot_shadow_json_data.h:58
IoT_Error_t aws_iot_fill_with_client_token(char *pBufferToBeUpdatedWithClientToken, size_t maxSizeOfJsonDocument)
Fill the given buffer with client token for tracking the Repsonse.
Definition: aws_iot_shadow_json.c:211
IoT_Error_t aws_iot_shadow_init_json_document(char *pJsonDocument, size_t maxSizeOfJsonDocument)
Initialize the JSON document with Shadow expected name/value.
Definition: aws_iot_shadow_json.c:61
IoT_Error_t aws_iot_shadow_add_reported(char *pJsonDocument, size_t maxSizeOfJsonDocument, uint8_t count,...)
Add the reported section of the JSON document of jsonStruct_t.
Definition: aws_iot_shadow_json.c:138
IoT_Error_t aws_iot_finalize_json_document(char *pJsonDocument, size_t maxSizeOfJsonDocument)
Finalize the JSON document with Shadow expected client Token.
Definition: aws_iot_shadow_json.c:219
jsonStructCallback_t cb
callback to be executed on receiving the Key value pair
Definition: aws_iot_shadow_json_data.h:62