Andy, I'm not sure if you're aware but there is a scraper https://plc4x.apache.org/users/tools/scraper.html which you can use to continuously poll data even when the driver doesn't support subscriptions.
On Mon, May 30, 2022 at 7:42 AM Łukasz Dywicki <[email protected]> wrote: > The simulation of subscriptions require probably more options than just > "event" or so. You probably need to configure higher frequency for > polling and ideally manage thread pool for that independently from > netty/connection itself to have control over its reliability. > > If I could have one suggestion.. try making it via decoration of > connection/driver. It gives you most of the flexibility without going to > close with driver. > > I made some decorator support earlier. Base structure is here: > > https://github.com/ConnectorIO/connectorio-addons/tree/master/bundles/org.connectorio.plc4x.decorator/src/main/java/org/connectorio/plc4x/decorator > example of "retry" logic for connection read/write/subscribe: > > https://github.com/ConnectorIO/connectorio-addons/blob/master/bundles/org.connectorio.plc4x.decorator.retry/src/main/java/org/connectorio/plc4x/decorator/retry/RetryDecorator.java > > If you find it useful for your thing we can move it into develop and > maintain together. > > Best, > Łukasz > > > On 29.05.2022 23:34, Andy Grebe wrote: > > hmmm... I should probably push those CIP changes first :) > > > > On Wed, May 25, 2022 at 10:14 AM Christofer Dutz < > [email protected]> > > wrote: > > > >> Hi Andy, > >> > >> It still is our plan :-) > >> > >> Just nobody did it yet ;-) > >> > >> Chris > >> > >> -----Original Message----- > >> From: Andy Grebe <[email protected]> > >> Sent: Mittwoch, 25. Mai 2022 15:58 > >> To: [email protected] > >> Subject: Subscription Simulation > >> > >> From the Getting Started guide, So if a protocol doesn’t support > >> subscription based communication it is our goal to simulate this by > polling > >> in the background so it is transparent for the users. > >> > >> Has this been implemented for any of the protocols? > >> > >> Thanks, > >> Andy > >> > > >
