Skip to main content
5-Regular Member
October 4, 2017
Question

How to map infotable value to Property Value

  • October 4, 2017
  • 2 replies
  • 2710 views

HI I am creating an alert using property and subscription. I am fetching some data from db and want to fire alert based on the value I am getting. As of for now I have to provide some value in property then the alert gets fired. I want to map the latest value of infotable[which I am fetching in service created by me] to the property value so that the alerts can be fired automatically based on the value.

2 replies

1-Visitor
October 4, 2017

Where do you have this infotable? Could you provide the structure?

In general I think you can create a subscription triggered on DataChange (the property you want to check), then compare the property value. If the condition is verified you can set alert Property to true.

mrastogi5-Regular MemberAuthor
5-Regular Member
October 4, 2017

HI lguagneliI have created a thing named as CFSThing, under this I have one service "GetData" which is fetching data from db, also the thing has one property "Threshold" and one subscription for sendmessage.

mrastogi5-Regular MemberAuthor
5-Regular Member
October 4, 2017

1-Visitor
October 4, 2017

Your thing is connected to a ValueStream? The service GetData read from DB and then save data in some other place? You should use subscription to update TempThreshold.