How to raise an event on SDK based on a property change on SDK side?
Jun 17, 2016
08:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 17, 2016
08:18 AM
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.
Labels:
- Labels:
-
Connectivity
1 REPLY 1
Jun 30, 2016
11:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jun 30, 2016
11:46 AM
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
