Skip to content

Commit eb64332

Browse files
authored
Merge pull request #286721 from gsteve88/howto-module-twins
Updated version of how to module twins
2 parents 2a5e3df + 4bf2ac6 commit eb64332

10 files changed

+936
-704
lines changed

articles/iot-hub/.openpublishing.redirection.iot-hub.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1539,6 +1539,26 @@
15391539
"source_path_from_root": "/articles/iot-hub/device-twins-node.md",
15401540
"redirect_url": "/azure/iot-hub/how-to-device-twins",
15411541
"redirect_document_id": false
1542+
},
1543+
{
1544+
"source_path_from_root": "/articles/iot-hub/module-twins-dotnet.md",
1545+
"redirect_url": "/azure/iot-hub/how-to-module-twins",
1546+
"redirect_document_id": false
1547+
},
1548+
{
1549+
"source_path_from_root": "/articles/iot-hub/module-twins-java.md",
1550+
"redirect_url": "/azure/iot-hub/how-to-module-twins",
1551+
"redirect_document_id": false
1552+
},
1553+
{
1554+
"source_path_from_root": "/articles/iot-hub/module-twins-python.md",
1555+
"redirect_url": "/azure/iot-hub/how-to-module-twins",
1556+
"redirect_document_id": false
1557+
},
1558+
{
1559+
"source_path_from_root": "/articles/iot-hub/module-twins-node.md",
1560+
"redirect_url": "/azure/iot-hub/how-to-module-twins",
1561+
"redirect_document_id": false
15421562
}
15431563
]
15441564
}

articles/iot-hub/TOC.yml

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -289,19 +289,8 @@
289289
displayName: device twins
290290
href: how-to-device-twins.md
291291
- name: Get started with module twins
292-
items:
293-
- name: Portal
294-
displayName: module twins, module identity
295-
href: module-twins-portal-dotnet.md
296-
- name: .NET
297-
displayName: module twins, module identity
298-
href: module-twins-dotnet.md
299-
- name: Python
300-
displayName: module twins, module identity
301-
href: module-twins-python.md
302-
- name: Node.js
303-
displayName: module twins, module identity
304-
href: module-twins-node.md
292+
displayName: module twins, module identity
293+
href: how-to-module-twins.md
305294
- name: Get started with device management
306295
items:
307296
- name: CLI
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Get started with module identity and module identity twins
3+
titleSuffix: Azure IoT Hub
4+
description: Learn how to create module identities and update module identity twins using the Azure IoT Hub SDKs.
5+
author: kgremban
6+
ms.author: kgremban
7+
manager: lizross
8+
ms.service: azure-iot-hub
9+
ms.devlang: csharp
10+
ms.topic: how-to
11+
ms.date: 09/03/2024
12+
zone_pivot_groups: iot-hub-howto-c2d-2
13+
ms.custom: mqtt, devx-track-csharp, devx-track-dotnet
14+
---
15+
16+
# Get started with IoT Hub module identities and module identity twins
17+
18+
Module identities and module identity twins are similar to Azure IoT Hub device identities and device twins, but provide finer granularity. While Azure IoT Hub device identities and device twins enable the back-end application to configure a device and provide visibility on the device's conditions, a module identity and module identity twin provide these capabilities for individual components of a device. On capable devices with multiple components, such as operating system devices or firmware devices, module identities and module identity twins allow for isolated configuration and conditions for each component. For more information, see [Understand Azure IoT Hub module twins](iot-hub-devguide-module-twins.md).
19+
20+
[!INCLUDE [iot-hub-basic](../../includes/iot-hub-basic-whole.md)]
21+
22+
This article shows you how to develop two types of applications:
23+
24+
* Device apps that view and update module identity twin reported properties and handle requests to update desired properties.
25+
* Service apps that can read and set module identity desired properties.
26+
27+
> [!NOTE]
28+
> This article is meant to complement [Azure IoT SDKs](iot-hub-devguide-sdks.md) samples that are referenced from within this article. You can use SDK tools to build both device and back-end applications.
29+
30+
## Prerequisites
31+
32+
* An IoT hub
33+
* An IoT hub device
34+
* An IoT hub device module identity
35+
36+
* If your application uses the MQTT protocol, make sure that **port 8883** is open in your firewall. The MQTT protocol communicates over port 8883. This port may be blocked in some corporate and educational network environments. For more information and ways to work around this issue, see [Connecting to IoT Hub (MQTT)](../iot/iot-mqtt-connect-to-iot-hub.md#connecting-to-iot-hub).
37+
38+
:::zone pivot="programming-language-csharp"
39+
40+
[!INCLUDE [iot-hub-howto-module-twins-dotnet](../../includes/iot-hub-howto-module-twins-dotnet.md)]
41+
42+
:::zone-end
43+
44+
:::zone pivot="programming-language-python"
45+
46+
[!INCLUDE [iot-hub-howto-module-twins-python](../../includes/iot-hub-howto-module-twins-python.md)]
47+
48+
:::zone-end
49+
50+
:::zone pivot="programming-language-node"
51+
52+
[!INCLUDE [iot-hub-howto-module-twins-node](../../includes/iot-hub-howto-module-twins-node.md)]
53+
54+
:::zone-end

articles/iot-hub/module-twins-dotnet.md

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)