cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

How to raise an event on SDK based on a property change on SDK side?

rkandasamy
7-Bedrock

How to raise an event on SDK based on a property change on SDK side?

We know that when ever a property value changes on thingworx server, there is a data change event and we can subscribe to it and perform some action based on the event triggered. we want to know whether the same can be done on SDK as well like a value is changed on SDK property and we want an event to be triggered on SDK and some actions to be performed on it's subscription.

1 REPLY 1
ttielebein
14-Alexandrite
(To:rkandasamy)

Hello,

You can create a service on in the edge SDK and call this from your data change event subscription. So when the property is updated on the edge, that change will push to ThingWorx Composer, and this will fire the datachange event, which then can proceed to call another edge service to let it know the property was updated successfully.

Hope this helps,

Tori

Announcements


Top Tags