![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
V.06 11/3
Dependencies: FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts
Fork of ATT_AWS_IoT_demo by
AWS_openssl/aws_iot_src/shadow/aws_iot_shadow_json.h@29:f71a0be59b99, 2017-11-03 (annotated)
- Committer:
- jilee
- Date:
- Fri Nov 03 20:28:02 2017 +0000
- Revision:
- 29:f71a0be59b99
- Parent:
- 15:6f2798e45099
v.06 11/03/2016
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ampembeng | 15:6f2798e45099 | 1 | /* |
ampembeng | 15:6f2798e45099 | 2 | * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved. |
ampembeng | 15:6f2798e45099 | 3 | * |
ampembeng | 15:6f2798e45099 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"). |
ampembeng | 15:6f2798e45099 | 5 | * You may not use this file except in compliance with the License. |
ampembeng | 15:6f2798e45099 | 6 | * A copy of the License is located at |
ampembeng | 15:6f2798e45099 | 7 | * |
ampembeng | 15:6f2798e45099 | 8 | * http://aws.amazon.com/apache2.0 |
ampembeng | 15:6f2798e45099 | 9 | * |
ampembeng | 15:6f2798e45099 | 10 | * or in the "license" file accompanying this file. This file is distributed |
ampembeng | 15:6f2798e45099 | 11 | * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either |
ampembeng | 15:6f2798e45099 | 12 | * express or implied. See the License for the specific language governing |
ampembeng | 15:6f2798e45099 | 13 | * permissions and limitations under the License. |
ampembeng | 15:6f2798e45099 | 14 | */ |
ampembeng | 15:6f2798e45099 | 15 | #ifndef AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_ |
ampembeng | 15:6f2798e45099 | 16 | #define AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_ |
ampembeng | 15:6f2798e45099 | 17 | |
ampembeng | 15:6f2798e45099 | 18 | #include <stdint.h> |
ampembeng | 15:6f2798e45099 | 19 | #include <stdbool.h> |
ampembeng | 15:6f2798e45099 | 20 | #include <stdarg.h> |
ampembeng | 15:6f2798e45099 | 21 | |
ampembeng | 15:6f2798e45099 | 22 | #include "aws_iot_error.h" |
ampembeng | 15:6f2798e45099 | 23 | #include "aws_iot_shadow_json_data.h" |
ampembeng | 15:6f2798e45099 | 24 | |
ampembeng | 15:6f2798e45099 | 25 | bool isJsonValidAndParse(const char *pJsonDocument, void *pJsonHandler, int32_t *pTokenCount); |
ampembeng | 15:6f2798e45099 | 26 | bool isJsonKeyMatchingAndUpdateValue(const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount, |
ampembeng | 15:6f2798e45099 | 27 | jsonStruct_t *pDataStruct, uint32_t *pDataLength, int32_t *pDataPosition); |
ampembeng | 15:6f2798e45099 | 28 | |
ampembeng | 15:6f2798e45099 | 29 | void iot_shadow_get_request_json(char *pJsonDocument); |
ampembeng | 15:6f2798e45099 | 30 | void iot_shadow_delete_request_json(char *pJsonDocument); |
ampembeng | 15:6f2798e45099 | 31 | void resetClientTokenSequenceNum(void); |
ampembeng | 15:6f2798e45099 | 32 | |
ampembeng | 15:6f2798e45099 | 33 | |
ampembeng | 15:6f2798e45099 | 34 | bool isReceivedJsonValid(const char *pJsonDocument); |
ampembeng | 15:6f2798e45099 | 35 | void FillWithClientToken(char *pStringToUpdateClientToken); |
ampembeng | 15:6f2798e45099 | 36 | bool extractClientToken(const char *pJsonDocumentToBeSent, char *pExtractedClientToken); |
ampembeng | 15:6f2798e45099 | 37 | bool extractVersionNumber(const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount, uint32_t *pVersionNumber); |
ampembeng | 15:6f2798e45099 | 38 | #endif // AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_ |
ampembeng | 15:6f2798e45099 | 39 |