Skip to content

Commit 4995cd8

Browse files
Merge pull request #291277 from kgremban/dec2-deviceconnect
ModuleId in connection state events
2 parents 3c48a3b + fe7a639 commit 4995cd8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

articles/iot-hub/iot-hub-non-telemetry-event-schema.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ Connection state events are emitted whenever a device or module connects or disc
7373
| iothub-message-schema | deviceConnectionStateNotification |
7474
| opType | deviceConnected or deviceDisconnected |
7575

76+
Both modules and devices use the `deviceConnected` and `deviceDisconnected` application properties to report connection state events. If the event came from a module, then the event also includes a `moduleId` property. If there is no `moduleId` property, then the event came from a device.
77+
7678
**System properties**: The following table shows how system properties are set for connection state events:
7779

7880
| Property | Value |

0 commit comments

Comments
 (0)