Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit 8e29208

Browse files
committed
Sync the Arduino Library azure-iot-arduino with the latest azure-iot-sdks version
1 parent df88a5a commit 8e29208

File tree

129 files changed

+10018
-26544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+10018
-26544
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# AzureIoTHub - Azure IoT Hub library for Arduino
1+
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.
22

3-
[![Build Status](https://travis-ci.org/arduino-libraries/AzureIoTHub.svg?branch=master)](https://travis-ci.org/arduino-libraries/AzureIoTHub)
3+
# AzureIoTHub - Azure IoT Hub library for Arduino
44

55
This library is a port of the [Microsoft Azure IoT device SDK for C](https://github.com/Azure/azure-iot-sdks/blob/master/c/readme.md) to Arduino. It allows you to use several Arduino compatible boards with Azure IoT Hub. Please submit any contribution directly to [azure-iot-sdks](https://github.com/Azure/azure-iot-sdks).
66

examples/simplesample_http/simplesample_http.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void simplesample_http_run(void)
198198
{
199199
unsigned char* destination;
200200
size_t destinationSize;
201-
if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != IOT_AGENT_OK)
201+
if (SERIALIZE(&destination, &destinationSize, myWeather->DeviceId, myWeather->WindSpeed) != CODEFIRST_OK)
202202
{
203203
(void)printf("Failed to serialize\r\n");
204204
}

examples/simplesample_http/simplesample_http.ino

+3-12
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ Adafruit_WINC1500 WiFi(WINC_CS, WINC_IRQ, WINC_RST);
4040
#endif
4141

4242
#include <AzureIoTHub.h>
43+
#include <AzureIoTUtility.h>
44+
#include <AzureIoTProtocol_HTTP.h>
4345

4446
#include "simplesample_http.h"
4547

@@ -70,20 +72,9 @@ void loop() {
7072
}
7173

7274
void initSerial() {
73-
//Initialize serial and wait for port to open:
74-
75-
#ifdef ARDUINO_ARCH_ESP8266
76-
// The next two lines For ESP8266 boards
75+
// Start serial and initialize stdout
7776
Serial.begin(115200);
7877
Serial.setDebugOutput(true);
79-
#else
80-
// For SAMD boards (e.g. MKR1000, Adafruit WINC1500 based)
81-
Serial.begin(9600);
82-
#endif
83-
84-
while (!Serial) {
85-
; // wait for serial port to connect. Needed for native USB port only
86-
}
8778
}
8879

8980
void initWifi() {

library.properties

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=AzureIoTHub
2-
version=1.0.0
2+
version=1.0.17
33
author=Arduino
44
maintainer=Microsoft <[email protected]>
55
sentence=Azure IoT library for Arduino. For the Arduino MKR1000 or Zero and WiFi Shield 101, Adafruit Huzzah and Feather M0, or SparkFun Thing.
6-
paragraph=Arduino port of the Azure IoT C device SDK. It allows you to use your Arduino with the Azure IoT Hub. See readme.md for more details.
6+
paragraph=Arduino port of the Azure IoT C device SDK. It allows you to use your Arduino with the Azure IoT Hub. See readme.md for more details. Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.
77
category=Communication
88
url=https://github.com/Azure/azure-iot-arduino
99
architectures=samd,esp8266

src/AzureIoTHub.h

+4-3
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
#ifndef AZUREIOTHUB_H
55
#define AZUREIOTHUB_H
66

7-
#include "azure_c_shared_utility/lock.h"
8-
#include "azure_c_shared_utility/threadapi.h"
7+
#include "AzureIoTUtility.h"
8+
99
#include "sdk/serializer.h"
1010

1111
#include "sdk/iothub_client_ll.h"
1212
#include "sdk/iothub_message.h"
1313
#include "sdk/iothubtransporthttp.h"
14+
#include "sdk/iothubtransportmqtt.h"
1415

1516
#include "AzureIoTHubClient.h"
1617

17-
#define AzureIoTHubVersion "1.0.0"
18+
#define AzureIoTHubVersion "1.1.00"
1819

1920
#endif

src/adapters/agenttime.c

-36
This file was deleted.

0 commit comments

Comments
 (0)