With the AF SDK you can load a local copy of an AFDatabase object and subscribe to the Changed event. Then you can periodically call Refresh and be notified of changes to the database. Is there an equivalent to this available in the web API?
With the AF SDK you can load a local copy of an AFDatabase object and subscribe to the Changed event. Then you can periodically call Refresh and be notified of changes to the database. Is there an equivalent to this available in the web API?
Hello CharlesCruden ,
I believe you are referring to AFDataPipe sign-ups, to use AF SDK language. With PI Web API there exist multiple options.
One is using web sockets. Please see Channels.
Another option is Stream RegisterStreamUpdate with Stream RetrieveStreamUpdate and if you like to monitor multiple Streams, you could use StreamSet RegisterStreamSetUpdates and StreamSet RetrieveStreamSetUpdates
Hi Gregor,
No, data pipe signups would be for monitoring data changes. This is more for monitoring model changes. (See AFDatabase.Changed.) For instance, if someone added a new element or removed one then data would be sent. (Possible actions listed here.) A channel and stream does look like they would be the overall way that that information would get back using the web API, but I can't seem to find a point to register to listen to model changes instead of data changes....
Hello CharlesCruden ,
No, I believe this is not implemented with PI Web API. I found the following Enhancement Request which appears to ask for the kind of functionality. Please consider voting. If you have another use case, I recommend sharing it as a comment. Service to find changes in the PI System
Hi Gregor,
That enhancement request is exactly what I'm looking for. Thank you for pointing me towards it - I voted!