BiancoRoyal / node-red-contrib-iiot-opcua

deprecated - very new developed by PLUS for Node-RED - https://plus4nodered.com
https://www.npmjs.com/package/node-red-contrib-iiot-opcua
BSD 3-Clause "New" or "Revised" License
34 stars 9 forks source link

How to control client subscription publishing interval? #7

Closed cristipogacean closed 6 years ago

cristipogacean commented 6 years ago

Hi,

It seams that Client's subscription publishing interval is defaulted to 10 seconds. Is there a possibility to be changed to a desired value? Monitored item's sampling rate respective queue size are configurable and seam to function properly.

Thank you and kind regards, Cristian

biancode commented 6 years ago

Hi,

Yes, sure!

With an inject ...

grafik
cristipogacean commented 6 years ago

Hi again,

I was aware about the inject you mentioned, nevertheless I think, from the behavior I see, the "interval" parameter refers there to the monitored item "sampling rate" and not to the subscription's publishing interval.

The behavior that I see is that with the above mentioned settings: I get every 10 seconds a package of 10 data-changes (sampled every 500ms). when I change the queue size to 1, then I get a data-change every 10 seconds.

How would you recommend to configure the inject in order to receive data-changes packed in publish responses with a frequency different than 10 seconds?

Thank you and kind regards, Cristian

biancode commented 6 years ago

image

biancode commented 6 years ago

image

image

The msg.payload could change the requestedPublishingInterval parameter.

biancode commented 6 years ago

read the new info of the node and try the new msg.payload.options to test, please