Skip to content

Commit fe7a639

Browse files
committed
ModuleId in connection state events
1 parent b70a22a commit fe7a639

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)