index.js
function(cb){
      serialport.list(function (err, ports) {
        if(err) return cb(err);
        var pinoccios = [];
        ports.forEach(function(port) {
          var pnpId = port.pnpId||port.manufacturer||"";
          if(pnpId.indexOf('Pinoccio') > -1){
            pinoccios.push(port.comName);
          }
        });
        cb(false,pinoccios,ports);
      });
    }
function(cb){
      serialport.list(function (err, ports) {
        if(err) return cb(err);
        var pinoccios = [];
        ports.forEach(function(port) {
          var pnpId = port.pnpId||port.manufacturer||"";
          if(pnpId.indexOf('Pinoccio') > -1){
            pinoccios.push(port.comName);
          }
        });
        cb(false,pinoccios,ports);
      });
    }
function ( cb ) { serialport . list ( function ( err , ports ) { if ( err ) return cb ( err ) ; var pinoccios = [ ] ; ports . forEach ( function ( port ) { var pnpId = port . pnpId || port . manufacturer || "" ; if ( pnpId . indexOf ( 'Pinoccio' ) > - 1 ) { pinoccios . push ( port . comName ) ; } } ) ; cb ( false , pinoccios , ports ) ; } ) ; }
look for connected pinoccios
look for connected pinoccios