Skip to content

Commit

Permalink
Remove DEC for solve multiple definition and add wrapper of the libra…
Browse files Browse the repository at this point in the history
…ry (#1)
  • Loading branch information
lirenhe committed May 29, 2018
1 parent 550803c commit 76833b6
Show file tree
Hide file tree
Showing 6 changed files with 836 additions and 1 deletion.
9 changes: 9 additions & 0 deletions library.properties
@@ -0,0 +1,9 @@
name=ESP32 Azure IoT Arduino
version=0.1.0
author=Microsoft
maintainer=Microsoft
sentence=Azure IoT library for ESP32
paragraph=This library provides an implementation of Azure IoT library.
category=Communication
url=https://github.com/VSChina/ESP32_AzureIoT_Arduino
architectures=esp32
2 changes: 2 additions & 0 deletions src/AzureIotHub.cpp
@@ -0,0 +1,2 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
21 changes: 21 additions & 0 deletions src/AzureIotHub.h
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license.
#ifndef __AZURE_IOTHUB_H__
#define __AZURE_IOTHUB_H__

#include "az_iot/iothub_client/inc/iothub_client.h"
#include "az_iot/iothub_client/inc/iothub_message.h"
#include "az_iot/c-utility/inc/azure_c_shared_utility/threadapi.h"
#include "az_iot/c-utility/inc/azure_c_shared_utility/crt_abstractions.h"
#include "az_iot/c-utility/inc/azure_c_shared_utility/platform.h"
#include "az_iot/c-utility/inc/azure_c_shared_utility/xlogging.h"
#include "az_iot/iothub_client/inc/iothubtransportmqtt.h"
#include "az_iot/azureiotcerts.h"

typedef void (*CONNECTION_STATUS_CALLBACK)(IOTHUB_CLIENT_CONNECTION_STATUS result, IOTHUB_CLIENT_CONNECTION_STATUS_REASON reason);
typedef void (*SEND_CONFIRMATION_CALLBACK)(IOTHUB_CLIENT_CONFIRMATION_RESULT result);
typedef void (*MESSAGE_CALLBACK)(const char* message, int length);
typedef void (*DEVICE_TWIN_CALLBACK)(DEVICE_TWIN_UPDATE_STATE updateState, const unsigned char *payLoad, int length);
typedef int (*DEVICE_METHOD_CALLBACK)(const char *methodName, const unsigned char *payload, int length, unsigned char **response, int *responseLength);
typedef void (*REPORT_CONFIRMATION_CALLBACK)(int status_code);
#endif // __AZURE_IOTHUB_H__

0 comments on commit 76833b6

Please sign in to comment.