npm.io
0.3.0 • Published 11 years ago

bean-serial

Licence
MIT
Version
0.3.0
Deps
1
Vulns
0
Weekly
0
Stars
5

bean-serial

Virtual serial device using ble-bean (Lightblue Bean node bindings)

How To Use

var Bean = require("ble-bean");
var SerialPort = require("bean-serial").SerialPort;

var serialPort ;
var options = {
	logging: true // default to false
};

Bean.discover(function(bean) {
	serialPort = new SerialPort(bean, options);
	// now just use as "normal" serial connection
}