Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.2.83: "subscribe" msg.interval & msg.payload have no effect #205

Closed
nrok-hpotsirhc opened this issue Sep 24, 2020 · 1 comment
Closed
Labels

Comments

@nrok-hpotsirhc
Copy link
Contributor

nrok-hpotsirhc commented Sep 24, 2020

example.json.zip

If have you once configured the opcuaClient node via UI with action "SUBSCRIBE" you can no more change the interval using msg.payload or msg.interval.

The subscription itself is not affected:
means, for an object like:

msg.action = "subscribe";
//msg.payload = "101"; //min. allowed sample Rate 101ms; interval overwrites payload 
msg.interval = "101"; //Stringified number should work as well; min. 101ms
msg.queueSize = 1; //default in Code is 10;
msg.topic = "ns=5;s=MyLevel;datatype=Double";

From the above object the parameters payload, interval and queueSize have no effect once the opcuaClient was configured via UI.

By the way "unsubscribe" does not work in the same format like "subscribe". Otherwise you get an quiet undefined error.

subscribe = "ns=5;s=MyLevel;datatype=Double";
unsubscribe = "ns=5;s=MyLevel";

example flow attached. rename it to example.json. The server is an online public server. Deploying the flow should instantly work for you.

best regards,
Chris

@nrok-hpotsirhc nrok-hpotsirhc changed the title "subscribe": msg.interval & msg.payload have no effect 0.2.83: "subscribe" msg.interval & msg.payload have no effect Sep 24, 2020
@mikakaraila
Copy link
Owner

Ack, I was using Number to check it, changed to parseInt(). Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants