bluetooth-serial-port
Advanced tools
Comparing version 1.0.5 to 1.1.1
@@ -47,6 +47,8 @@ /* | ||
BluetoothSerialPort.prototype.findSerialPortChannel = function(address, callback) { | ||
BluetoothSerialPort.prototype.findSerialPortChannel = function(address, successCallback, errorCallback) { | ||
this.inq.findSerialPortChannel(address, function(channel) { | ||
if (channel >= 0) { | ||
callback(channel); | ||
successCallback(channel); | ||
} else { | ||
errorCallback(); | ||
} | ||
@@ -53,0 +55,0 @@ }); |
{ "name" : "bluetooth-serial-port" | ||
, "version" : "1.0.5" | ||
, "version" : "1.1.1" | ||
, "description" : "Bluetooth serial port communication for Node.js" | ||
@@ -11,2 +11,3 @@ , "author": "Eelco Cramer <eelco@hailendal.org>" | ||
, "os x" | ||
, "windows" | ||
] | ||
@@ -19,3 +20,3 @@ , "homepage" : "https://github.com/eelcocramer/node-bluetooth-serial-port" | ||
} | ||
, "directories" : | ||
, "directories" : | ||
{ "lib" : "./lib" | ||
@@ -36,3 +37,3 @@ } | ||
, "license": "BSD-2-Clause" | ||
, "contributors": ["Eric Smekens", "Juho Vepsäläinen", "Elmar Langholz"] | ||
, "contributors": ["Eric Smekens", "Juho Vepsäläinen", "Elmar Langholz", "Donald Ness", "Joost Verdoorn"] | ||
} |
@@ -7,2 +7,13 @@ # Bluetooth serial port communication for Node.js | ||
### 1.1.1 | ||
* Fixes typo in readme. | ||
### 1.1.0 | ||
* Fixes buffer overflow on close() in Mac OSX. | ||
* Adds failure callback that is called when no channel can be found. | ||
* Fixes an issue on Mac OSX where a write action would fail when the MTU was exceeded (issue 23). | ||
* Fixes an issue on Mac OSX where data would not be written asynchronously (issue 24 and issue 25). | ||
### 1.0.5 | ||
@@ -92,3 +103,3 @@ | ||
// close the connection when you're ready | ||
btSerial.close(); | ||
btSerial.close(); | ||
}); | ||
@@ -95,0 +106,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
164115
120
172