A modelling and serializer library for Microsoft Azure IoTHub client applications
Dependents: sht15_remote_monitoring f767zi_mqtt remote_monitoring simplesample_amqp ... more
This library implements a serializer library to be used in projects involving Microsoft Azure IoT Hub connectivity. The code is replicated from https://github.com/Azure/azure-iot-sdks
jsondecoder.h@0:1f9b2707ec7d, 2015-09-15 (annotated)
- Committer:
- AzureIoTClient
- Date:
- Tue Sep 15 21:57:26 2015 -0700
- Revision:
- 0:1f9b2707ec7d
- Child:
- 17:fa1bba4c6053
New release
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AzureIoTClient | 0:1f9b2707ec7d | 1 | // Copyright (c) Microsoft. All rights reserved. |
AzureIoTClient | 0:1f9b2707ec7d | 2 | // Licensed under the MIT license. See LICENSE file in the project root for full license information. |
AzureIoTClient | 0:1f9b2707ec7d | 3 | |
AzureIoTClient | 0:1f9b2707ec7d | 4 | #ifndef JSONDECODER_H |
AzureIoTClient | 0:1f9b2707ec7d | 5 | #define JSONDECODER_H |
AzureIoTClient | 0:1f9b2707ec7d | 6 | |
AzureIoTClient | 0:1f9b2707ec7d | 7 | #include "multitree.h" |
AzureIoTClient | 0:1f9b2707ec7d | 8 | |
AzureIoTClient | 0:1f9b2707ec7d | 9 | #ifdef __cplusplus |
AzureIoTClient | 0:1f9b2707ec7d | 10 | #include <cstddef> |
AzureIoTClient | 0:1f9b2707ec7d | 11 | extern "C" { |
AzureIoTClient | 0:1f9b2707ec7d | 12 | #else |
AzureIoTClient | 0:1f9b2707ec7d | 13 | #include <stddef.h> |
AzureIoTClient | 0:1f9b2707ec7d | 14 | #endif |
AzureIoTClient | 0:1f9b2707ec7d | 15 | |
AzureIoTClient | 0:1f9b2707ec7d | 16 | typedef enum JSON_DECODER_RESULT_TAG |
AzureIoTClient | 0:1f9b2707ec7d | 17 | { |
AzureIoTClient | 0:1f9b2707ec7d | 18 | JSON_DECODER_OK, |
AzureIoTClient | 0:1f9b2707ec7d | 19 | JSON_DECODER_INVALID_ARG, |
AzureIoTClient | 0:1f9b2707ec7d | 20 | JSON_DECODER_PARSE_ERROR, |
AzureIoTClient | 0:1f9b2707ec7d | 21 | JSON_DECODER_MULTITREE_FAILED, |
AzureIoTClient | 0:1f9b2707ec7d | 22 | JSON_DECODER_ERROR |
AzureIoTClient | 0:1f9b2707ec7d | 23 | } JSON_DECODER_RESULT; |
AzureIoTClient | 0:1f9b2707ec7d | 24 | |
AzureIoTClient | 0:1f9b2707ec7d | 25 | extern JSON_DECODER_RESULT JSONDecoder_JSON_To_MultiTree(char* json, MULTITREE_HANDLE* multiTreeHandle); |
AzureIoTClient | 0:1f9b2707ec7d | 26 | |
AzureIoTClient | 0:1f9b2707ec7d | 27 | #ifdef __cplusplus |
AzureIoTClient | 0:1f9b2707ec7d | 28 | } |
AzureIoTClient | 0:1f9b2707ec7d | 29 | #endif |
AzureIoTClient | 0:1f9b2707ec7d | 30 | |
AzureIoTClient | 0:1f9b2707ec7d | 31 | #endif /* JSONDECODER_H */ |