You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 12, 2023. It is now read-only.
This library is a port of the compact implementation of the MQTT protocol from [Microsoft Azure IoT device SDK for C](https://github.com/Azure/azure-iot-sdks/blob/master/c/readme.md) to Arduino. Together with the AzureIoTHub, 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).
26
+
Contributions for code that is not Arduino-specific can be made to the
27
+
[Azuure IoT C SDK](https://github.com/azure/azure-iot-sdk-c)
You should have the following ready before beginning with any board:
19
-
-[Setup your IoT hub](https://github.com/Azure/azure-iot-sdks/blob/master/doc/setup_iothub.md)
20
-
-[Provision your device and get its credentials](https://github.com/Azure/azure-iot-sdks/blob/master/doc/manage_iot_hub.md)
39
+
-[Setup your IoT hub](https://github.com/Azure/azure-iot-device-ecosystem/blob/master/setup_iothub.md)
40
+
-[Provision your device and get its credentials](https://github.com/Azure/azure-iot-device-ecosystem/blob/master/setup_iothub.md#create-new-device-in-the-iot-hub-device-identity-registry)
21
41
-[Arduino IDE 1.6.12](https://www.arduino.cc/en/Main/Software)
22
-
- Install the `AzureIoTHub` library via the Arduino IDE Library Manager
23
-
- Install the `AzureIoTUtility` library via the Arduino IDE Library Manager
24
-
- Install the `AzureIoTProtocol_MQTT` library via the Arduino IDE Library Manager
42
+
- Install the [`AzureIoTHub`](https://github.com/Azure/azure-iot-arduino) library via the Arduino IDE Library Manager
43
+
- Install the [`AzureIoTUtility`](https://github.com/Azure/azure-iot-arduino-utility) library via the Arduino IDE Library Manager
44
+
- Install the [`AzureIoTProtocol_MQTT`](https://github.com/Azure/azure-iot-arduino-protocol-mqtt) library via the Arduino IDE Library Manager
25
45
26
-
# Simple Sample Instructions
27
46
28
-
## MKR1000 or Zero + Wifi101
29
-
1. Open the `simplesample_mqtt` example from the Arduino IDE File->Examples->AzureIoTHub menu.
30
-
2. Install the `WiFi101` library from the Arduino IDE Library Manager.
31
-
3. Install the `NTPClient` library from the Arduino IDE Library Manager.
32
-
4. Install the `RTCZero` library from the Arduino IDE Library Manager.
33
-
5. Update Wifi SSID/Password in simplesample_mqtt.ino
34
-
* Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser.
35
-
6. Update IoT Hub Connection string in simplesample_mqtt.c
47
+
## Simple Sample Instructions
36
48
37
-
## ESP8266
49
+
###ESP8266
38
50
##### Sparkfun Thing, Adafruit Feather Huzzah, or generic ESP8266 board
39
51
40
52
1. Install esp8266 board support into your Arduino IDE.
@@ -43,29 +55,24 @@ You should have the following ready before beginning with any board:
43
55
* Open Boards Manager from Tools > Board menu and install esp8266 platform 2.2.0 or later
44
56
* Select your ESP8266 board from Tools > Board menu after installation
45
57
46
-
2. Open the `simplesample_mqtt` example from the Arduino IDE File->Examples->AzureIoTHub menu.
47
-
3. Update the sketch as directed by comments in the sample to support the ESP8266 board.
48
-
4. Update Wifi SSID/Password in simplesample_mqtt.ino
58
+
2. Open the `simplesample_mqtt` example from the Arduino IDE File->AzureIoTHub->ESP8266->Examples menu.
59
+
4. Update Wifi SSID/Password and IoT Hub Connection string in iot_configs.h
49
60
* Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser.
50
-
5. Update IoT Hub Connection string in simplesample_mqtt.c
51
61
6. Access the [SparkFun Get Started](https://azure.microsoft.com/en-us/documentation/samples/iot-hub-c-thingdev-getstartedkit/) tutorial to learn more about Microsoft Sparkfun Dev Kit.
52
62
7. Access the [Huzzah Get Started](https://azure.microsoft.com/en-us/documentation/samples/iot-hub-c-huzzah-getstartedkit/) tutorial to learn more about Microsoft Huzzah Dev Kit.
53
63
54
64
55
-
## Adafruit Feather M0
65
+
###Adafruit Feather M0
56
66
1. Install Feather M0 board support into your Arduino IDE.
57
67
* Start Arduino and open Preferences window.
58
68
* Enter `https://adafruit.github.io/arduino-board-index/package_adafruit_index.json` into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
59
69
* Open Boards Manager from Tools > Board menu and install `Arduino SAMD Boards` and `Adafruit SAMD Boards` 1.0.7 or later.
60
70
* Select your `Adafruit Feather M0` from Tools > Board menu after installation
61
71
2. Install the `WiFi101` library from the Arduino IDE Library Manager.
62
72
3. Install the `RTCZero` library from the Arduino IDE Library Manager.
63
-
4. Install the `NTPClient` library from the Arduino IDE Library Manager.
64
-
5. Open the `simplesample_mqtt` example from the Arduino IDE File->Examples->AzureIoTHub menu.
65
-
6. Update the sketch as directed by comments in the sample to support the ESP8266 board.
66
-
7. Update Wifi SSID/Password in simplesample_mqtt.ino
73
+
5. Open the `simplesample_mqtt` example from the Arduino IDE File->AzureIoTHub->M0->Examples menu.
74
+
4. Update Wifi SSID/Password and IoT Hub Connection string in iot_configs.h
67
75
* Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser.
68
-
8. Update IoT Hub Connection string in simplesample_mqtt.c
69
76
9. Access the [Feather M0 WiFi Get Started](https://azure.microsoft.com/en-us/documentation/samples/iot-hub-c-m0wifi-getstartedkit/) tutorial to learn more about Microsoft Feather M0 WiFi Dev Kit.
0 commit comments