Subscribe to an event on the server side that correspond to one call to updateSubscribedProperties
I would like to subscribe to an event for a thing template when an instance of a template finishes updating
properties from a remote virtual thing so I can check changed properties including all other existing properties on a thing and use a logical expression to check if I need to do an action: eg. me.temp >27 && me.pressure >100 or me.state === "fault" do something.
I also want to send that all thing's property data (including changed and old once) to a third party sql db for historical and analytical purposes.
So how to subscribe to an event on the server side that correspond to one call to updateSubscribedProperties method on the agent side. It should only be run if there is at least a change in one property.
AnyDataChange will fire multiple times (as many as the number properties that changed) per updateSubscribedProperties method call.
I want to be able to respond to this bulk change or to treat multiple properties changes done via updateSubscribedProperties method as only one event.
Thanks,
Rad

