this is fork and i will modify for STM32

Fork of AWS-test by Pierre-Marie Ancèle

Committer:
bcjun@aname.co.kr
Date:
Fri Aug 04 15:34:19 2017 +0900
Revision:
3:1ef624d94403
Parent:
0:cd5404401c2f
add esp82660-driver for NUCLEO_F401RE target.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
peyo 0:cd5404401c2f 1 /*
peyo 0:cd5404401c2f 2 * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
peyo 0:cd5404401c2f 3 *
peyo 0:cd5404401c2f 4 * Licensed under the Apache License, Version 2.0 (the "License").
peyo 0:cd5404401c2f 5 * You may not use this file except in compliance with the License.
peyo 0:cd5404401c2f 6 * A copy of the License is located at
peyo 0:cd5404401c2f 7 *
peyo 0:cd5404401c2f 8 * http://aws.amazon.com/apache2.0
peyo 0:cd5404401c2f 9 *
peyo 0:cd5404401c2f 10 * or in the "license" file accompanying this file. This file is distributed
peyo 0:cd5404401c2f 11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
peyo 0:cd5404401c2f 12 * express or implied. See the License for the specific language governing
peyo 0:cd5404401c2f 13 * permissions and limitations under the License.
peyo 0:cd5404401c2f 14 */
peyo 0:cd5404401c2f 15 #ifndef AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_
peyo 0:cd5404401c2f 16 #define AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_
peyo 0:cd5404401c2f 17
peyo 0:cd5404401c2f 18 #ifdef __cplusplus
peyo 0:cd5404401c2f 19 extern "C" {
peyo 0:cd5404401c2f 20 #endif
peyo 0:cd5404401c2f 21
peyo 0:cd5404401c2f 22 #include <stdint.h>
peyo 0:cd5404401c2f 23 #include <stdbool.h>
peyo 0:cd5404401c2f 24 #include <stdarg.h>
peyo 0:cd5404401c2f 25
peyo 0:cd5404401c2f 26 #include "aws_iot_error.h"
peyo 0:cd5404401c2f 27 #include "aws_iot_shadow_json_data.h"
peyo 0:cd5404401c2f 28
peyo 0:cd5404401c2f 29 bool isJsonValidAndParse(const char *pJsonDocument, void *pJsonHandler, int32_t *pTokenCount);
peyo 0:cd5404401c2f 30
peyo 0:cd5404401c2f 31 bool isJsonKeyMatchingAndUpdateValue(const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount,
peyo 0:cd5404401c2f 32 jsonStruct_t *pDataStruct, uint32_t *pDataLength, int32_t *pDataPosition);
peyo 0:cd5404401c2f 33
peyo 0:cd5404401c2f 34 void aws_iot_shadow_internal_get_request_json(char *pJsonDocument);
peyo 0:cd5404401c2f 35
peyo 0:cd5404401c2f 36 void aws_iot_shadow_internal_delete_request_json(char *pJsonDocument);
peyo 0:cd5404401c2f 37
peyo 0:cd5404401c2f 38 void resetClientTokenSequenceNum(void);
peyo 0:cd5404401c2f 39
peyo 0:cd5404401c2f 40
peyo 0:cd5404401c2f 41 bool isReceivedJsonValid(const char *pJsonDocument);
peyo 0:cd5404401c2f 42
peyo 0:cd5404401c2f 43 void FillWithClientToken(char *pStringToUpdateClientToken);
peyo 0:cd5404401c2f 44
peyo 0:cd5404401c2f 45 bool extractClientToken(const char *pJsonDocumentToBeSent, char *pExtractedClientToken);
peyo 0:cd5404401c2f 46
peyo 0:cd5404401c2f 47 bool extractVersionNumber(const char *pJsonDocument, void *pJsonHandler, int32_t tokenCount, uint32_t *pVersionNumber);
peyo 0:cd5404401c2f 48
peyo 0:cd5404401c2f 49 #ifdef __cplusplus
peyo 0:cd5404401c2f 50 }
peyo 0:cd5404401c2f 51 #endif
peyo 0:cd5404401c2f 52
peyo 0:cd5404401c2f 53 #endif // AWS_IOT_SDK_SRC_IOT_SHADOW_JSON_H_