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
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-set-up-template.md
+10-8Lines changed: 10 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Define a new IoT device type in Azure IoT Central
3
-
description: How to create an Azure IoT device template in your Azure IoT Central application. You define the telemetry, state, properties, and commands for your device type.
3
+
description: How to create a device template in your Azure IoT Central application. You define the telemetry, state, properties, and commands for your device type.
4
4
author: dominicbetts
5
5
ms.author: dobett
6
6
ms.date: 03/01/2024
@@ -9,6 +9,8 @@ ms.service: iot-central
9
9
services: iot-central
10
10
ms.custom: device-developer
11
11
# This article applies to solution builders and device developers.
12
+
13
+
#customer intent: As an solution builders, I want define the device types that can connect to my application so that I can manage and monitor them effectively.
12
14
---
13
15
14
16
# Define a new IoT device type in your Azure IoT Central application
@@ -36,7 +38,7 @@ To learn how to manage device templates by using the IoT Central REST API, see [
36
38
You have several options to create device templates:
37
39
38
40
- Design the device template in the IoT Central GUI.
39
-
- Import a device template from the device catalog. Optionally, customize the device template to your requirements in IoT Central.
41
+
- Import a device template from the list of featured device templates. Optionally, customize the device template to your requirements in IoT Central.
40
42
- When the device connects to IoT Central, have it send the model ID of the model it implements. IoT Central uses the model ID to retrieve the model from the model repository and to create a device template. Add any cloud properties and views your IoT Central application needs to the device template.
41
43
- When the device connects to IoT Central, let IoT Central [autogenerate a device template](#autogenerate-a-device-template) definition from the data the device sends.
42
44
- Author a device model using the [Digital Twin Definition Language (DTDL) V2](https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/DTDL.v2.md) and [IoT Central DTDL extension](https://github.com/Azure/opendigitaltwins-dtdl/blob/master/DTDL/v2/DTDL.iotcentral.v2.md). Manually import the device model into your IoT Central application. Then add the cloud properties and views your IoT Central application needs.
@@ -45,15 +47,15 @@ You have several options to create device templates:
45
47
> [!NOTE]
46
48
> In each case, the device code must implement the capabilities defined in the model. The device code implementation isn't affected by the cloud properties and views sections of the device template.
47
49
48
-
This section shows you how to import a device template from the catalog and how to customize it using the IoT Central GUI. This example uses the **ESP32-Azure IoT Kit** device template from the device catalog:
50
+
This section shows you how to import a device template from the list of featured device templates and how to customize it using the IoT Central GUI. This example uses the **Onset Hobo MX-100 Temp Sensor** device template from the list of featured device templates:
49
51
50
52
1. To add a new device template, select **+ New** on the **Device templates** page.
51
-
1. On the **Select type** page, scroll down until you find the **ESP32-Azure IoT Kit** tile in the **Use a pre-configured device template** section.
52
-
1. Select the **ESP32-Azure IoT Kit** tile, and then select **Next: Review**.
53
+
1. On the **Select type** page, scroll down until you find the **Onset Hobo MX-100 Temp Sensor** tile in the **Featured device templates** section.
54
+
1. Select the **Onset Hobo MX-100 Temp Sensor** tile, and then select **Next: Review**.
53
55
1. On the **Review** page, select **Create**.
54
-
The name of the template you created is **Sensor Controller**. The model includes components such as **Sensor Controller**, **SensorTemp**, and **Device Information interface**. Components define the capabilities of an ESP32 device. Capabilities include the telemetry, properties, and commands.
56
+
The name of the template you created is **Hobo MX-100**. The model includes components such as **Hobo MX-100**and **IotDevice**. Components define the capabilities of a Hobo MX-100 device. Capabilities can include telemetry, properties, and commands. This device only has telemetry capabilities.
55
57
56
-
:::image type="content" source="media/howto-set-up-template/device-template.png" alt-text="Screenshot that shows a Sensor controller device template." lightbox="media/howto-set-up-template/device-template.png":::
58
+
:::image type="content" source="media/howto-set-up-template/device-template.png" alt-text="Screenshot that shows a device template." lightbox="media/howto-set-up-template/device-template.png":::
57
59
58
60
## Autogenerate a device template
59
61
@@ -92,7 +94,7 @@ To create a device model, you can:
92
94
93
95
- Use IoT Central to create a custom model from scratch.
94
96
- Import a DTDL model from a JSON file. A device builder might use Visual Studio Code to author a device model for your application.
95
-
- Select one of the devices from the device catalog. This option imports the device model that the manufacturer published for this device. A device model imported like this is automatically published.
97
+
- Select one of the devices from the list of featured device templates. This option imports the device model that the manufacturer published for this device. A device model imported like this is automatically published.
96
98
97
99
1. To view the model ID, select the root interface in the model and select **Edit identity**:
0 commit comments