bluetooth-serial-port
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -25,3 +25,2 @@ /******************************************************************************* | ||
var DeviceINQ = require("./device-inquiry.js").DeviceINQ; | ||
var inq = new DeviceINQ(); | ||
@@ -36,9 +35,11 @@ /** | ||
EventEmitter.call(this); | ||
this.inq = new DeviceINQ(); | ||
var self = this; | ||
inq.on('found', function(address, name) { | ||
this.inq.on('found', function(address, name) { | ||
self.emit('found', address, name); | ||
}); | ||
inq.on('finnished', function() { | ||
this.inq.on('finnished', function() { | ||
self.emit('finnished'); | ||
@@ -52,7 +53,7 @@ }); | ||
BluetoothSerialPort.prototype.inquire = function() { | ||
inq.inquire(); | ||
this.inq.inquire(); | ||
} | ||
BluetoothSerialPort.prototype.findSerialPortChannel = function(address, callback) { | ||
inq.findSerialPortChannel(address, callback); | ||
this.inq.findSerialPortChannel(address, callback); | ||
} | ||
@@ -59,0 +60,0 @@ |
{ "name" : "bluetooth-serial-port" | ||
, "version" : "0.1.3" | ||
, "version" : "0.1.4" | ||
, "description" : "Bluetooth serial port communication for Node.js" | ||
@@ -4,0 +4,0 @@ , "author": "Eelco Cramer <eelco@hailendal.org>" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25709