Skip to content

Commit b42eeaf

Browse files
authored
Merge pull request #78188 from kgremban/may29-routes
Update route information about outputs
2 parents 62242b2 + 2310b87 commit b42eeaf

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

articles/iot-edge/module-composition.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how a deployment manifest declares which modules to deploy, h
44
author: kgremban
55
manager: philmea
66
ms.author: kgremban
7-
ms.date: 03/28/2019
7+
ms.date: 05/28/2019
88
ms.topic: conceptual
99
ms.service: iot-edge
1010
services: iot-edge
@@ -13,11 +13,14 @@ ms.custom: seodec18
1313

1414
# Learn how to deploy modules and establish routes in IoT Edge
1515

16-
Each IoT Edge device runs at least two modules: $edgeAgent and $edgeHub, which are part of the IoT Edge runtime. Additionally, any IoT Edge device can run multiple modules to perform any number of processes. You deploy all these modules to a device at once, so IoT Edge provides a way to declare which modules to install and how to configure them to work together.
16+
Each IoT Edge device runs at least two modules: $edgeAgent and $edgeHub, which are part of the IoT Edge runtime. IoT Edge device can run multiple additional modules for any number of processes. Use a deployment manifest to tell your device which modules to install and how to configure them to work together.
1717

1818
The *deployment manifest* is a JSON document that describes:
1919

20-
* The **IoT Edge agent** module twin, which includes the container image for each module, the credentials to access private container registries, and instructions for how each module should be created and managed.
20+
* The **IoT Edge agent** module twin, which includes three components.
21+
* The container image for each module that runs on the device.
22+
* The credentials to access private container registries that contain module images.
23+
* Instructions for how each module should be created and managed.
2124
* The **IoT Edge hub** module twin, which includes how messages flow between modules and eventually to IoT Hub.
2225
* Optionally, the desired properties of any additional module twins.
2326

@@ -129,15 +132,17 @@ Every route needs a source and a sink, but the condition is an optional piece th
129132

130133
### Source
131134

132-
The source specifies where the messages come from. IoT Edge can route messages from leaf devices or modules.
135+
The source specifies where the messages come from. IoT Edge can route messages from modules or leaf devices.
136+
137+
Using the IoT SDKs, modules can declare specific output queues for their messages using the ModuleClient class. Output queues aren't necessary, but are helpful for managing multiple routes. Leaf devices can use the DeviceClient class of the IoT SDKs to send messages to IoT Edge gateway devices in the same way that they would send messages to IoT Hub. For more information, see [Understand and use Azure IoT Hub SDKs](../iot-hub/iot-hub-devguide-sdks.md).
133138

134139
The source property can be any of the following values:
135140

136141
| Source | Description |
137142
| ------ | ----------- |
138143
| `/*` | All device-to-cloud messages or twin change notifications from any module or leaf device |
139144
| `/twinChangeNotifications` | Any twin change (reported properties) coming from any module or leaf device |
140-
| `/messages/*` | Any device-to-cloud message sent by a module or leaf device through some or no output |
145+
| `/messages/*` | Any device-to-cloud message sent by a module through some or no output, or by a leaf device |
141146
| `/messages/modules/*` | Any device-to-cloud message sent by a module through some or no output |
142147
| `/messages/modules/<moduleId>/*` | Any device-to-cloud message sent by a specific module through some or no output |
143148
| `/messages/modules/<moduleId>/outputs/*` | Any device-to-cloud message sent by a specific module through some output |

0 commit comments

Comments
 (0)