Skip to content

Commit 2afa860

Browse files
committed
IoT Hub EG review
1 parent 83ee2ee commit 2afa860

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

articles/event-grid/publish-iot-hub-events-to-logic-apps.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,15 @@ In this section, you configure your IoT Hub to publish events as they occur.
166166

167167
* **Event Subscription Details**: Provide a descriptive name and select **Event Grid Schema**
168168

169-
You could save the event subscription here, and receive notifications for every device that is created in your IoT hub. For this tutorial, though, let's use the optional fields to filter for specific devices:
169+
You could save the event subscription here, and receive notifications for every device that is created in your IoT hub. For this tutorial, though, let's use the optional fields to filter for specific devices:
170170

171-
* **Subject Begins With**: Enter `devices/Building1_` to filter for device events in building 1.
172-
* **Subject Ends With**: Enter `_Temperature` to filter for device events related to temperature.
171+
* **Subject Begins With**: Enter `devices/Building1_` to filter for device events in building 1.
172+
* **Subject Ends With**: Enter `_Temperature` to filter for device events related to temperature.
173173

174-
When you're done, the form should look like the following example:
174+
When you're done, the form should look like the following example:
175175

176-
![Sample event subscription form](./media/publish-iot-hub-events-to-logic-apps/subscription-form.png)
177-
176+
![Sample event subscription form](./media/publish-iot-hub-events-to-logic-apps/subscription-form.png)
177+
178178
5. Select **Create** to save the event subscription.
179179

180180
## Create a new device

articles/iot-hub/iot-hub-event-grid.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Use either the Azure portal or Azure CLI to configure which events to publish fr
3939

4040
IoT Hub events contain all the information you need to respond to changes in your device lifecycle. You can identify an IoT Hub event by checking that the eventType property starts with **Microsoft.Devices**. For more information about how to use Event Grid event properties, see the [Event Grid event schema](../event-grid/event-schema.md).
4141

42-
### Device Connected schema
42+
### Device connected schema
4343

4444
The following example shows the schema of a device connected event:
4545

@@ -125,9 +125,9 @@ The subject of IoT Events uses the format:
125125
```json
126126
devices/{deviceId}
127127
```
128-
## Limitations for Device Connected and Device Disconnected Events
128+
## Limitations for device connected and device disconnected events
129129

130-
To receive device connected and device disconnected events, you must open the D2C link or C2D link for your device. If your device is using MQTT protocol, IoT Hub will keep the C2D link open. For AMQP you can open the C2D link by calling the [Receive Async API](https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.devices.client.deviceclient.receiveasync?view=azure-dotnet#Microsoft_Azure_Devices_Client_DeviceClient_ReceiveAsync). The D2C link is open if you are sending telemetry. If the device connection is flickering, i.e. the device connects and disconnects frequently, we will not send every single connection state, but will publish the connection state that is snapshotted every minute. In case of an IoT Hub outage, we will publish the device connection state as soon as the outage is over. If the device disconnects during that outage, the device disconnected event will be published within 10 minutes.
130+
To receive device connected and device disconnected events, you must open the D2C link or C2D link for your device. If your device is using MQTT protocol, IoT Hub will keep the C2D link open. For AMQP you can open the C2D link by calling the [Receive Async API](https://docs.microsoft.com/dotnet/api/microsoft.azure.devices.client.deviceclient.receiveasync?view=azure-dotnet). The D2C link is open if you are sending telemetry. If the device connection is flickering, i.e. the device connects and disconnects frequently, we will not send every single connection state, but will publish the connection state that is snapshotted every minute. In case of an IoT Hub outage, we will publish the device connection state as soon as the outage is over. If the device disconnects during that outage, the device disconnected event will be published within 10 minutes.
131131

132132
## Tips for consuming events
133133

@@ -137,7 +137,6 @@ Applications that handle IoT Hub events should follow these suggested practices:
137137
* Don't assume that all events you receive are the types that you expect. Always check the eventType before processing the message.
138138
* Messages can arrive out of order or after a delay. Use the etag field to understand if your information about objects is up-to-date.
139139

140-
141140
## Next steps
142141

143142
* [Try the IoT Hub events tutorial](../event-grid/publish-iot-hub-events-to-logic-apps.md)

articles/iot-hub/iot-hub-how-to-order-connection-state-events.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ The sequence number is a string representation of a hexadecimal number. You can
3333

3434
First, create a stored procedure and set it up to run a logic that compares sequence numbers of incoming events and records the latest event per device in the database.
3535

36-
1. In your Cosmos DB SQL API, select **Data Explorer**-> **Items**->**New Stored Procedure**.
36+
1. In your Cosmos DB SQL API, select **Data Explorer** > **Items** > **New Stored Procedure**.
3737

3838
![Create stored procedure](./media/iot-hub-how-to-order-connection-state-events/create-stored-procedure.png)
3939

@@ -255,10 +255,10 @@ In this section, you configure your IoT Hub to publish events as they occur.
255255

256256
5. Select **Create** to save the event subscription.
257257

258-
## Observe Events
258+
## Observe events
259259
Now that your event subscription is set up, let's test by connecting a device.
260260
261-
### Register a device in the IoT Hub
261+
### Register a device in IoT Hub
262262
263263
1. From your IoT hub, select **IoT Devices**.
264264
2. Select **Add**.
@@ -272,7 +272,7 @@ Now that your event subscription is set up, let's test by connecting a device.
272272
273273
![How to outcome](./media/iot-hub-how-to-order-connection-state-events/DeviceConnString.png)
274274
275-
### Start Raspberry Pi Simulator
275+
### Start Raspberry Pi simulator
276276
277277
1. Let's use the Raspberry Pi web simulator to simulate device connection.
278278

0 commit comments

Comments
 (0)