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

Committer:
AzureIoTClient
Date:
Tue Sep 11 11:14:37 2018 -0700
Revision:
36:7d12a5386197
Parent:
17:fa1bba4c6053
1.2.9

Who changed what in which revision?

UserRevisionLine numberNew 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 17:fa1bba4c6053 25 #include "azure_c_shared_utility/umock_c_prod.h"
AzureIoTClient 17:fa1bba4c6053 26 MOCKABLE_FUNCTION(, JSON_DECODER_RESULT, JSONDecoder_JSON_To_MultiTree, char*, json, MULTITREE_HANDLE*, multiTreeHandle);
AzureIoTClient 0:1f9b2707ec7d 27
AzureIoTClient 0:1f9b2707ec7d 28 #ifdef __cplusplus
AzureIoTClient 0:1f9b2707ec7d 29 }
AzureIoTClient 0:1f9b2707ec7d 30 #endif
AzureIoTClient 0:1f9b2707ec7d 31
AzureIoTClient 0:1f9b2707ec7d 32 #endif /* JSONDECODER_H */