The com ports are simply named "com1", "com2" and so on on windows.
So this will not work.
vareligiblePorts=ports.filter(function(port){return!port.match(/[Bb]luetooth/)&&port.match(/\/dev\/tty/);});but this will
vareligiblePorts=ports.filter(function(port){return!port.match(/[Bb]luetooth/);});
The com ports are simply named "com1", "com2" and so on on windows.
So this will not work.
but this will