lib/connector/list-devices.js
async function listDevices(showAll){
    // get all available serial ports
    const ports = (await _serialport.list()) || [];
    // just pass-through
    if (showAll){
        return ports;

    // filter by vendorIDs
    }else{
        return ports.filter(function(item){
            // 
            return knownVendorIDs.includes(item.vendorId && item.vendorId.toUpperCase());
        });
    }
}
async function listDevices(showAll){
    // get all available serial ports
    const ports = (await _serialport.list()) || [];
    // just pass-through
    if (showAll){
        return ports;

    // filter by vendorIDs
    }else{
        return ports.filter(function(item){
            // 
            return knownVendorIDs.includes(item.vendorId && item.vendorId.toUpperCase());
        });
    }
}
async function listDevices ( showAll ) { // get all available serial ports const ports = ( await _serialport . list ( ) ) || [ ] ; // just pass-through if ( showAll ) { return ports ; // filter by vendorIDs } else { return ports . filter ( function ( item ) { //  return knownVendorIDs . includes ( item . vendorId && item . vendorId . toUpperCase ( ) ) ; } ) ; } }
show connected serial devices
show connected serial devices