Giter VIP home page Giter VIP logo

Comments (5)

jisotalo avatar jisotalo commented on July 20, 2024

Hi!

The ads-client libray handles one subscription for each variable, so yes you need one for each. Unless if there is some Node-RED method for making this easier.

In node.js it would be simple to call it for an array or so, but I don't know what is the best solution in Node-RED.

Could you perhaps create a STRUCT that contains all and subcribe with single fast-enough cycle time?

from node-red-contrib-ads-client.

vdwpsmt avatar vdwpsmt commented on July 20, 2024

ok, thanks for the clarification.
The reason for asking is mainly because we are looking for a more performant way of communication between a beckhoff plc and the edge device. So unfortunately grouping all in a single struct is not really a solution in that context. (mix of low and high cycling rates needed).
The Node-Red workaround could be something like "hiding" things in a subflow (with an array of variables as input), but that still doesn't make it very flexible to changing variablesets, cycling rates, differents machine configs etc...
Anyhow, first thing to check would be to monitor the performance of such a number of notifications. Making this flexible in a multi-subscription node is only 2nd priority.
Be interesting though to know if there's anyone else in need for this feature.

from node-red-contrib-ads-client.

jisotalo avatar jisotalo commented on July 20, 2024

I see.

If possible, please use the ads-client (https://github.com/jisotalo/ads-client) directly in node.js and skip Node-RED so you can test these things easier.

However of course you could develop a node that supports multiple variables and subscribes them all.

from node-red-contrib-ads-client.

vdwpsmt avatar vdwpsmt commented on July 20, 2024

ok, I'll consider both options.
btw, impressively well documented this ads-client! nice work!

from node-red-contrib-ads-client.

jisotalo avatar jisotalo commented on July 20, 2024

Thanks! :)

from node-red-contrib-ads-client.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.