mulderp / mulderp.github.com

blog
1 stars 0 forks source link

serial port blog post #14

Open mulderp opened 8 years ago

mulderp commented 8 years ago

nice trick: http://stackoverflow.com/questions/18879880/how-to-display-nodejs-raw-buffer-data-as-hex-string

mulderp commented 8 years ago

on windows seems not easy command line to list serial ports, i.e. add an example with:

var serialPort = require("serialport");
serialPort.list(function (err, ports) {
  ports.forEach(function(port) {
    console.log(port.comName);
    console.log(port.pnpId);
    console.log(port.manufacturer);
  });
});
mulderp commented 8 years ago

interesting idea to mention: restsful to serial bridge http://www.tigoe.com/pcomp/code/arduinowiring/1122/

mulderp commented 8 years ago

and http://www.tigoe.com/pcomp/code/arduinowiring/1096/