|
| 1 | +--- |
| 2 | +title: Connect an Azure Sphere device in Azure IoT Central | Microsoft Docs |
| 3 | +description: Learn how to connect an Azure Sphere (DevKit) device to an Azure IoT Central application. |
| 4 | +services: iot-central |
| 5 | +ms.service: iot-central |
| 6 | +ms.topic: how-to |
| 7 | +ms.author: sandeepu |
| 8 | +author: sandeeppujar |
| 9 | +ms.date: 04/30/2020 |
| 10 | +--- |
| 11 | + |
| 12 | +# Connect an Azure Sphere device to your Azure IoT Central application |
| 13 | + |
| 14 | +*This article applies to device developers.* |
| 15 | + |
| 16 | +This article shows you how to connect an Azure Sphere (DevKit) device to an Azure IoT Central application. |
| 17 | + |
| 18 | +Azure Sphere is a secured, high-level application platform with built-in communication and security features for internet-connected devices. It includes a secured, connected, crossover microcontroller unit (MCU), a custom high-level Linux-based operating system (OS), and a cloud-based security service that provides continuous, renewable security. For more information, see[What is Azure Sphere?](https://docs.microsoft.com/azure-sphere/product-overview/what-is-azure-sphere). |
| 19 | + |
| 20 | +[Azure Sphere development kits](https://azure.microsoft.com/services/azure-sphere/get-started/) provide everything you need to start prototyping and developing Azure Sphere applications. Azure IoT Central with Azure Sphere enables an end-to-end stack for an IoT Solution. Azure Sphere provides the device support and IoT Central as a zero-code, managed IoT application platform. |
| 21 | + |
| 22 | +In this how-to article, you: |
| 23 | + |
| 24 | +- Create an Azure Sphere device in IoT Central using the Azure Sphere DevKit device template from the library. |
| 25 | +- Prepare Azure Sphere DevKit device for Azure IoT. |
| 26 | +- Connect Azure Sphere DevKit to Azure IoT Central. |
| 27 | +- View the telemetry from the device in IoT Central. |
| 28 | + |
| 29 | +## Prerequisites |
| 30 | + |
| 31 | +To complete the steps in this article, you need the following resources: |
| 32 | + |
| 33 | +- An Azure IoT Central application. |
| 34 | +- Visual Studio 2019, version 16.4 or later. |
| 35 | +- An [Azure Sphere MT3620 development kit from Seeed Studios](https://docs.microsoft.com/azure-sphere/hardware/mt3620-reference-board-design). |
| 36 | + |
| 37 | +> [!NOTE] |
| 38 | +> If you don't have a physical device, then after the first step step skip to the last section to try a simulated device. |
| 39 | +
|
| 40 | +## Create the device in IoT Central |
| 41 | + |
| 42 | +To create an Azure Sphere device in IoT Central: |
| 43 | + |
| 44 | +1. In your Azure IoT Central application, select the **Device Templates** tab and select **+ New**. In the section **Use a featured device template**, select **Azure Sphere Sample Device**. |
| 45 | + |
| 46 | + :::image type="content" source="media/howto-connect-sphere/sphere-create-template.png" alt-text="Device template for Azure Sphere DevKit"::: |
| 47 | + |
| 48 | +1. In the device template, edit the view called **Overview** to show **Temperature** and **Button Press**. |
| 49 | + |
| 50 | +1. Select the **Editing Device and Cloud Data** view type to add another view that shows the read/write property **Status LED**. Drag the **Status LED** property to the empty, dotted rectangle on the right-side of the form. Select **Save**. |
| 51 | + |
| 52 | +## Prepare the device |
| 53 | + |
| 54 | +Before you can connect the Azure Sphere DevKit device to IoT Central, you need to [setup the device and development environment](https://github.com/Azure/azure-sphere-samples/tree/master/Samples/AzureIoT). |
| 55 | + |
| 56 | +## Connect the device |
| 57 | + |
| 58 | +To enable the sample to connect to IoT Central, you must [configure an Azure IoT Central application and then modify the sample's application manifest](https://aka.ms/iotcentral-sphere-git-readme). |
| 59 | + |
| 60 | +## View the telemetry from the device |
| 61 | + |
| 62 | +When the device is connected to IoT Central, you can see the telemetry on the dashboard. |
| 63 | + |
| 64 | +:::image type="content" source="media/howto-connect-sphere/sphere-view.png" alt-text="Dashboard for Azure Sphere DevKit"::: |
| 65 | + |
| 66 | +## Create a simulated device |
| 67 | + |
| 68 | +If you don't have a physical Azure Sphere DevKit device, you can create a simulated device to try Azure IoT Central application. |
| 69 | + |
| 70 | +To create a simulated device: |
| 71 | + |
| 72 | +- Select **Devices > Azure IoT Sphere** |
| 73 | +- Select **+ New**. |
| 74 | +- Enter a unique **Device ID** and a friendly **Device name**. |
| 75 | +- Enable the **Simulated** setting. |
| 76 | +- Select **Create**. |
| 77 | + |
| 78 | +## Next steps |
| 79 | + |
| 80 | +If you're a device developer, some suggested next steps are to: |
| 81 | + |
| 82 | +- Read about [Device connectivity in Azure IoT Central](./concepts-get-connected.md) |
| 83 | +- Learn how to [Monitor device connectivity using Azure CLI](./howto-monitor-devices-azure-cli.md) |
0 commit comments