|
1 |
| -# AzureIoT - Azure IoT library for Arduino |
| 1 | +# AzureIoT - Azure IoT Hub library for Arduino |
2 | 2 |
|
3 |
| -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 your Arduino/Genuino with the [Azure IoT Hub](https://azure.microsoft.com/en-us/services/iot-hub/). |
| 3 | +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. |
4 | 4 |
|
5 |
| -For the Arduino/Genuino [MKR1000](https://www.arduino.cc/en/Main/ArduinoMKR1000) or [Zero](https://www.arduino.cc/en/Main/ArduinoBoardZero) and [WiFi Shield 101](https://www.arduino.cc/en/Main/ArduinoWiFiShield101) only. |
| 5 | +Currently supported hardware: |
| 6 | +- Atmel SAMD Based boards |
| 7 | + - Arduino/Genuino [MKR1000](https://www.arduino.cc/en/Main/ArduinoMKR1000) |
| 8 | + - Adafruit [Feather M0](https://www.adafruit.com/products/3010) |
| 9 | + - Arduino/Genuino [Zero](https://www.arduino.cc/en/Main/ArduinoBoardZero) and [WiFi Shield 101](https://www.arduino.cc/en/Main/ArduinoWiFiShield101) |
| 10 | +- ESP8266 based boards with [esp8266/arduino](https://github.com/esp8266/arduino) |
| 11 | + - SparkFun [Thing](https://www.sparkfun.com/products/13711) |
| 12 | + - Adafruit [Feather Huzzah](https://www.adafruit.com/products/2821) |
6 | 13 |
|
7 | 14 | [![Microsoft Azure Certified][Microsoft-Azure-Certified-Badge]][azure-certifiedforiot]
|
8 | 15 |
|
9 |
| -## Getting started |
10 |
| - |
11 |
| -See the [Microsoft Azure IoT device SDK for C - Arduino WiFi Shield 101 and MKR1000 Setup Guide](https://github.com/Azure/azure-iot-sdks/blob/master/c/doc/run_sample_on_arduino_wifi101.md). |
| 16 | +## Prerequisites |
| 17 | + |
| 18 | +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) |
| 21 | +- [Arduino IDE 1.6.8](https://www.arduino.cc/en/Main/Software) |
| 22 | +- Install the `AzureIoTHub` library via the Arduino IDE Library Manager |
| 23 | + |
| 24 | +## ESP8266 |
| 25 | +##### Sparkfun Thing, Adafruit Feather Huzzah, or generic ESP8266 board |
| 26 | + |
| 27 | +1. Install esp8266 board support into your Arduino IDE. |
| 28 | + * Start Arduino and open Preferences window. |
| 29 | + * Enter `http://arduino.esp8266.com/stable/package_esp8266com_index.json` into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas. |
| 30 | + * Open Boards Manager from Tools > Board menu and install esp8266 platform 2.1.0 or later |
| 31 | + * Select your ESP8266 board from Tools > Board menu after installation |
| 32 | + |
| 33 | +2. Open the AzureIoTHub ESP8266 sample from the Arduino IDE File->Examples menu. |
| 34 | +3. Update Wifi SSID/Password in simplesample_http.ino |
| 35 | + * Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser. |
| 36 | +4. Update IoT Hub Connection string in simplesample_http.c |
| 37 | + |
| 38 | + |
| 39 | +## Adafruit Feather M0 |
| 40 | +1. Install Feather M0 board support into your Arduino IDE. |
| 41 | + * Start Arduino and open Preferences window. |
| 42 | + * 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. |
| 43 | + * Open Boards Manager from Tools > Board menu and install Adafruit SAMD Boards 1.0.7 or later. |
| 44 | + * Select your Adafruit Feather M0 from Tools > Board menu after installation |
| 45 | +2. Install the [Adafruit WINC1500 wifi library](https://learn.adafruit.com/adafruit-feather-m0-wifi-atwinc1500/using-the-wifi-module) |
| 46 | +3. Install the `RTCZero` library from the Arduino IDE Library Manager. |
| 47 | +2. Open the AzureIoTHub SAMD sample from the Arduino IDE File->Examples menu. |
| 48 | +3. Update Wifi SSID/Password in simplesample_http.ino |
| 49 | + * Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser. |
| 50 | +4. Update IoT Hub Connection string in simplesample_http.c |
| 51 | + |
| 52 | +## MKR1000 or Zero + Wifi101 |
| 53 | +1. Open the AzureIoTHub SAMD sample from the Arduino IDE File->Examples menu. |
| 54 | +2. Update Wifi SSID/Password in simplesample_http.ino |
| 55 | + * Ensure you are using a wifi network that does not require additional manual steps after connection, such as opening a web browser. |
| 56 | +3. Update IoT Hub Connection string in simplesample_http.c |
12 | 57 |
|
13 | 58 | ## License
|
14 | 59 |
|
|
0 commit comments