9 Replies Latest reply on Sep 14, 2016 2:34 AM by jlangan

    PI Web API Channels (WebSocket connection) for multiple elements

    przemyslawk

      PI Web API Channels allow to get continuous updates for any stream or streamset (by providing its WebId). Is there any way to have a streamset object that retrieves data for multiple elements?

       

      From StreamSet spec:

      The PI Web API supports bulk data retrieval using stream sets. A stream set is a set of stream attributes with a common parent element, event frame, or attribute.

       

      In my case I want to retrieve attribute values that share common ancestor element (but it is not the parent). I know that it would be possible to make such query with Batch controller and I need similar result using Channels. In other words I don't want to open a WebSocket connection for every element in the AF but create one connection for all of the elements.