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/concepts-device-templates.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: What are device templates in Azure IoT Central
3
3
description: Device templates let you specify the behavior of the devices connected to your application. They also define a UI for the device in IoT Central.
4
4
author: dominicbetts
5
5
ms.author: dobett
6
-
ms.date: 06/05/2023
6
+
ms.date: 07/12/2024
7
7
ms.topic: conceptual
8
8
ms.service: iot-central
9
9
services: iot-central
@@ -13,15 +13,15 @@ ms.custom: device-developer
13
13
14
14
# What are device templates?
15
15
16
-
A device template in Azure IoT Central is a blueprint that defines the characteristics and behaviors of a type of device that connects to your application. For example, the device template defines the telemetry that a device sends so that IoT Central can create visualizations that use the correct units and data types.
16
+
A device template in Azure IoT Central is a blueprint that defines the characteristics and behaviors of a type of device that connects to your application. For example, the device template defines the telemetry that a device sends so that IoT Central can create visualizations that use the correct units and data types. Telemetry that matches the device template definition is referred to as *modeled* data. Telemetry that doesn't match the device template definition is referred to as *unmodeled* data.
17
17
18
-
A solution builder adds device templates to an IoT Central application. A device developer writes the device code that implements the behaviors defined in the device template. To learn more about the data that a device exchanges with IoT Central, see [Telemetry, property, and command payloads](../../iot/concepts-message-payloads.md).
18
+
A solution builder adds device templates to an IoT Central application. A device developer writes the device code that implements the behaviors defined in the device template. To learn more about how to create a device template or have one automatically generated, see [Create a device template in your Azure IoT Central application](howto-set-up-template.md). To learn more about the data that a device exchanges with IoT Central, see [Telemetry, property, and command payloads](../../iot/concepts-message-payloads.md).
19
19
20
20
A device template includes the following sections:
21
21
22
22
-_A device model_. This part of the device template defines how the device interacts with your application. Every device model has a unique ID. A device developer implements the behaviors defined in the model.
23
23
-_Root component_. Every device model has a root component. The root component's interface describes capabilities that are specific to the device model.
24
-
-_Components_. A device model may include components in addition to the root component to describe device capabilities. Each component has an interface that describes the component's capabilities. Component interfaces may be reused in other device models. For example, several phone device models could use the same camera interface.
24
+
-_Components_. A device model can include components in addition to the root component to describe device capabilities. Each component has an interface that describes the component's capabilities. Component interfaces can be reused in other device models. For example, several phone device models could use the same camera interface.
25
25
-_Inherited interfaces_. A device model contains one or more interfaces that extend the capabilities of the root component.
26
26
-_Views_. This part of the device template lets the solution developer define visualizations to view data from the device, and forms to manage and control a device. Views don't affect the code that a device developer writes to implement the device model.
27
27
@@ -101,7 +101,7 @@ You can also mark a property as writable on an interface. A device can receive a
101
101
102
102
Devices don't need to be connected to set property values. The updated values are transferred when the device next connects to the application. This behavior applies to both read-only and writable properties.
103
103
104
-
Don't use properties to send telemetry from your device. For example, a readonly property such as `temperatureSetting=80` should mean that the device temperature has been set to 80, and the device is trying to get to, or stay at, this temperature.
104
+
Don't use properties to send telemetry from your device. For example, a readonly property such as `temperatureSetting=80` should mean that the device temperature is set to 80, and the device is trying to get to, or stay at, this target temperature.
105
105
106
106
For writable properties, the device application returns a desired state status code, version, and description to indicate whether it received and applied the property value.
107
107
@@ -249,6 +249,6 @@ A solution developer creates views that let operators monitor and manage connect
249
249
- Tiles to let the operator call commands, including commands that expect a payload.
250
250
- Tiles to display labels, images, or markdown text.
251
251
252
-
## Next steps
252
+
## Next step
253
253
254
254
Now that you've learned about device templates, a suggested next step is to read [Telemetry, property, and command payloads](../../iot/concepts-message-payloads.md) to learn more about the data a device exchanges with IoT Central.
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-manage-device-templates-with-rest-api.md
+2-6Lines changed: 2 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Add device templates in Azure IoT Central with the REST API
3
3
description: How to use the IoT Central REST API to add, update, delete, and manage device templates in an application
4
4
author: dominicbetts
5
5
ms.author: dobett
6
-
ms.date: 06/14/2023
6
+
ms.date: 07/12/2024
7
7
ms.topic: how-to
8
8
ms.service: iot-central
9
9
services: iot-central
@@ -180,7 +180,7 @@ The request body has some required fields:
180
180
*`@id`: a unique ID in the form of a simple Uniform Resource Name.
181
181
*`@type`: declares that the top-level object is a `"ModelDefinition","DeviceModel"`.
182
182
*`@context`: specifies the DTDL version used for the interface.
183
-
*`contents`: lists the properties, telemetry, and commands that make up your device. The capabilities may be defined in multiple interfaces.
183
+
*`contents`: lists the properties, telemetry, and commands that make up your device. The capabilities can be defined in multiple interfaces.
184
184
*`capabilityModel` : Every device template has a capability model. A relationship is established between each module capability model and a device model. A capability model implements one or more module interfaces.
185
185
186
186
> [!TIP]
@@ -1308,7 +1308,3 @@ The response to this request looks like the following example:
1308
1308
]
1309
1309
}
1310
1310
```
1311
-
1312
-
## Next steps
1313
-
1314
-
Now that you've learned how to manage device templates with the REST API, a suggested next step is to [How to create device templates from IoT Central GUI](howto-set-up-template.md#create-a-device-template).
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-map-data.md
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Transform telemetry on ingress to IoT Central
3
3
description: To use complex telemetry from devices, you can use mappings to transform it as it arrives in your IoT Central application.
4
4
author: dominicbetts
5
5
ms.author: dobett
6
-
ms.date: 06/13/2023
6
+
ms.date: 07/12/2024
7
7
ms.topic: how-to
8
8
ms.service: iot-central
9
9
services: iot-central
@@ -18,6 +18,9 @@ Data mapping lets you transform complex device telemetry into structured data in
18
18
* Normalize telemetry from different devices by mapping JSON paths on multiple devices to a common alias.
19
19
* Export to destinations outside IoT Central.
20
20
21
+
> [!TIP]
22
+
> If you want to autogenerate a device template from unmodeled telemetry, see [Autogenerate a device template](howto-set-up-template.md#autogenerate-a-device-template).
23
+
21
24
:::image type="content" source="media/howto-map-data/map-data-summary.png" alt-text="Diagram that summarizes the mapping process in IoT Central." border="false":::
22
25
23
26
The following video walks you through the data mapping process:
@@ -150,7 +153,3 @@ The results of these mapping rules look like the following examples:
150
153
```
151
154
152
155
Now you can use the mapped aliases to display telemetry on a chart or dashboard. You can also use the mapped aliases when you export telemetry.
153
-
154
-
## Next steps
155
-
156
-
Now that you've learned how to map data for your device, a suggested next step is to learn [How to use data explorer to analyze device data](howto-create-analytics.md).
Copy file name to clipboardExpand all lines: articles/iot-central/core/howto-set-up-template.md
+15-15Lines changed: 15 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,9 @@
1
1
---
2
-
title: Define a new IoT device type in Azure IoT Central
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.
2
+
title: Create a device template in Azure IoT Central
3
+
description: How to create a device template. You define the telemetry, state, properties, and commands for your template. Device templates can also be autogenerated.
4
4
author: dominicbetts
5
5
ms.author: dobett
6
-
ms.date: 03/01/2024
6
+
ms.date: 07/12/2024
7
7
ms.topic: how-to
8
8
ms.service: iot-central
9
9
services: iot-central
@@ -13,11 +13,13 @@ ms.custom: device-developer
13
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.
14
14
---
15
15
16
-
# Define a new IoT device type in your Azure IoT Central application
16
+
# Create a device template in your Azure IoT Central application
17
17
18
-
A device template is a blueprint that defines the characteristics and behaviors of a type of device that connects to an Azure IoT Central application.
18
+
A device template is a blueprint that defines the characteristics and behaviors of a type of device that connects to an Azure IoT Central application. For example, you can create a device template for a sensor that sends telemetry, such as temperature and properties, such as location. To learn more, see [What are device templates?](concepts-device-templates.md).
19
19
20
-
This article describes how to create a device template in IoT Central. For example, you can create a device template for a sensor that sends telemetry, such as temperature and properties, such as location. From this device template, an operator can create and connect real devices.
20
+
This article describes some of the ways to create a device template in IoT Central such as [autogenerating a device template from a telemetry message](#autogenerate-a-device-template) or defining one in the [IoT Central UI](#create-a-device-template-in-your-azure-iot-central-application).
21
+
22
+
From a device template, an operator can create and connect real devices.
21
23
22
24
The following screenshot shows an example of a device template:
23
25
@@ -29,15 +31,11 @@ The device template has the following sections:
29
31
- Raw data - View the raw data sent by your designated preview device. This view is useful when you're debugging or troubleshooting a device template.
30
32
- Views - Use views to visualize the data from the device and forms to manage and control a device.
31
33
32
-
To learn more, see [What are device templates?](concepts-device-templates.md).
33
-
34
34
To learn how to manage device templates by using the IoT Central REST API, see [How to use the IoT Central REST API to manage device templates.](../core/howto-manage-device-templates-with-rest-api.md)
35
35
36
-
## Create a device template
37
-
38
36
You have several options to create device templates:
39
37
40
-
- Design the device template in the IoT Central GUI.
38
+
- Design the device template in the IoT Central UI.
41
39
- Import a device template from the list of featured device templates. Optionally, customize the device template to your requirements in IoT Central.
42
40
- 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.
43
41
- 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.
@@ -47,7 +45,9 @@ You have several options to create device templates:
47
45
> [!NOTE]
48
46
> 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.
49
47
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:
48
+
## Import a device template
49
+
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 UI. This example uses the **Onset Hobo MX-100 Temp Sensor** device template from the list of featured device templates:
51
51
52
52
1. To add a new device template, select **+ New** on the **Device templates** page.
53
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.
@@ -78,9 +78,9 @@ The following steps show how to use this feature:
78
78
79
79
:::image type="content" source="media/howto-set-up-template/infer-model-3.png" alt-text="Screenshot that shows how to rename the autogenerated device template." lightbox="media/howto-set-up-template/infer-model-3.png":::
80
80
81
-
## Manage a device template
81
+
## Manage device templates in the UI
82
82
83
-
You can rename or delete a template from the template's editor page.
83
+
You can create, edit, rename, or delete a template from the template's editor page.
84
84
85
85
After you define the template, you can publish it. Until the template is published, you can't connect a device to it, and it doesn't appear on the **Devices** page.
86
86
@@ -283,6 +283,6 @@ Add forms to a device template to enable operators to manage a device by viewing
283
283
284
284
Before you can connect a device that implements your device model, you must publish your device template.
285
285
286
-
To publish a device template, go to you your device template, and select **Publish**.
286
+
To publish a device template, go to your device template, and select **Publish**.
287
287
288
288
After you publish a device template, an operator can go to the **Devices** page, and add either real or simulated devices that use your device template. You can continue to modify and save your device template as you're making changes. When you want to push these changes out to the operator to view under the **Devices** page, you must select **Publish** each time.
0 commit comments