Get information about the serial com available with the node function

Continuing the discussion from Any possibility to choose the serial COM port in the dashboard?:


I tried to solve the last issue adding multi nodes serialport in and out, and config them with COM1, COM2, .... this works but it is not a good approach.

I thought in another approach, using the node function:

  1. get all COM available
  2. get the serial number of each
  3. choose the COM by serial number (I will use multi FTDI 232, and I will configure each a unique serial number)

How I can get all COM available and read serial number?

Thank you,

Check out the code for the Node-RED serial-in node. It contains a cross-platform lookup for serial ports.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.