close a connection from nodered?

Supporting Browser-based Javascript and Node.js
mk300
Fresh meat
Posts: 3
Joined: Wed Jan 14, 2026 8:42 am

close a connection from nodered?

Post by mk300 »

Hi. using node-red to facilitate connection to Phidget 1046.1 load cell interface, with 3 load cells connected. Is there a way to programatically close specific channels? I want only listen to one loadcell/channel at a time. With all 3 enabled I'm maxing bandwidth and missing reads.
User avatar
mparadis
Site Admin
Posts: 685
Joined: Fri Oct 28, 2011 12:17 pm

Re: close a connection from nodered?

Post by mparadis »

There isn't currently functionality to close Phidget channels mid-flow in node-red. As far as I can tell the channels only close when the flow is stopped. You could probably add close functionality by adding support for a 'close' message in phidget22-voltageratioinput.js (in the switch statement in Phidget22VoltageRatioInputNode() )
mk300
Fresh meat
Posts: 3
Joined: Wed Jan 14, 2026 8:42 am

Re: close a connection from nodered?

Post by mk300 »

Ok thanks. I tried to dynamically setDataInterval high on the non active sensors but it didn't seem to work. Once I disabled those sensor objects in node-red then it did, but that isn't a solution for this scendario. I'll take the easy way out for now and add a 2nd phidget device for the pesky load cell that requires the low data interval that is causing my issues.