Skip to main content
1-Visitor
August 14, 2020
Solved

Subscription for remote thing property quality changed

  • August 14, 2020
  • 3 replies
  • 1752 views

I would like to create a subscription for a remote thing. I would like to trigger this subscription when the property source quality (good, bad ) was changed. Could you please suggest a solution for resolving this issue? 

Thanks,

Terza

Best answer by VladimirRosu_116627

A quick add to the reply before, which points to the correct direction.

You need to create a generic subscription to the DataChange event, and check inside if the old quality changed vs the new quality with a simple "if" , and based on the result, execute your code.

 

Hope it makes it clear.

3 replies

16-Pearl
August 14, 2020

Create a subscription with DataChange event and under Event Data you have the new data and old data quality available as variables that could be added in the subscription code. 

rjanardan_0-1597406518944.png

 

19-Tanzanite
August 14, 2020

A quick add to the reply before, which points to the correct direction.

You need to create a generic subscription to the DataChange event, and check inside if the old quality changed vs the new quality with a simple "if" , and based on the result, execute your code.

 

Hope it makes it clear.

Community Manager
August 18, 2020

Hi @terzabalazs.

 

If one of the previous responses answered your question, please mark the appropriate one as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon