Skip to main content
6-Contributor
November 11, 2014
Question

How to set property of implementing thing based on event.

  • November 11, 2014
  • 2 replies
  • 1025 views

h3. Hi All,

I have two different things (A and B). I want to subscribe a event of thing A (Thing Template) and based on that event i want to set property of Thing B.<br><br>

I have created two subscription in B thing template for testing<br>1. On data change event of a property defined in thing A <br>2. On a custom event. <br><br>

To test it i have created a mash up where i am manually setting the property of Thing A. In turn it should change the value of property in Thing B.<br>But it is not working. <br><br>

Kindly help me out. if i am missing something.<br>Thanks in advance!!!<br><br>

Regards,<br>Muzahid<br>  

<br>

 



    2 replies

    1-Visitor
    November 11, 2014

    Hi Muzahid, what does your subscription script look like?

    Also you can add a logger statement to your subscription to make sure that it is actually firing.

    6-Contributor
    November 12, 2014

    Hi Pai,

    Thanks for the response. Now it is working and logger is good way to debug.


    Regards,

    Muzahid