0.2.3 • Published 11 years ago

serialport-manager v0.2.3

Weekly downloads
17
License
-
Repository
github
Last release
11 years ago

serialport-manager

Manage transient serialport connections.

Install

npm install serialport-manager

Use

var spm = require('serialport-manager');

spm(function(err, connection, deviceList) {
  connection.write(deviceList[0].comName + '\n');
  connection.pipe(process.stdout);
});

How does it work

calling spm above performs the following actions:

  • attempt connection to the serialport manager daemon
  • if the connection fails, spawn the daemon
  • reconnect
  • on connection, wait for the device list
  • parse the json device list
  • call the function passed into spm
  • identify what device you want to use by sending back the commName
  • bind to data events or pipe somewhere

Why?

I want plug and play serial devices. I also want them to be accessible by more than one program.

License

MIT

0.2.3

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.0

11 years ago

0.0.4

12 years ago

0.0.3

12 years ago

0.0.2

12 years ago

0.0.1

12 years ago