Using IOTHub message routing feature, I am able to listen device twin change notifications whenever there is any change in device twin.
No matter whether it is a change in tags or reported properties or desired properties.
What I am looking for is a way to filter out events when reported properties are changed. I don't want (or I would like to ignore) any notification for changes in tags or desired properties.
For now, as of my research it can be only done by maintaining last reported properties version and comparing it with new event reported properties version.
Please enlighten me if any other way is there without having to maintain last version details somewhere.
Asked
Active
Viewed 93 times
0

Yash Mochi
- 769
- 6
- 15
1 Answers
1
your Message routing should be configured with the following:
Data Source: TwinChangeEvents
Routing Query: IS_OBJECT($body.properties.reported)

Roman Kiss
- 7,925
- 1
- 8
- 21
-
This condition would be true if the desired property is changed - right? or am I missing something? – Ganesh May 28 '21 at 10:25