bluetooth-hci-socket
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -15,10 +15,2 @@ var events = require('events'); | ||
BluetoothHciSocket.prototype.getAddress = function() { | ||
return this.getAddressBytes().toString('hex').match(/.{1,2}/g).reverse().join(':'); | ||
}; | ||
BluetoothHciSocket.prototype.getAddressType = function() { | ||
return 'public'; | ||
}; | ||
module.exports = BluetoothHciSocket; |
{ | ||
"name": "bluetooth-hci-socket", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Bluetooth HCI socket binding for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,18 +51,2 @@ # node-bluetooth-hci-socket | ||
#### Address | ||
Get the device (Bluetooth/BT) address. __Note:__ must be called after ```bindRaw```. | ||
``` | ||
var btAddress = bluetoothHciSocket.getAddress(); | ||
``` | ||
#### Address Type | ||
Get the device (Bluetooth/BT) address type. __Note:__ must be called after ```bindRaw```. | ||
``` | ||
var btAddressType = bluetoothHciSocket.getAddressType(); // returns: 'public' or 'random' | ||
``` | ||
#### Is Device Up | ||
@@ -69,0 +53,0 @@ |
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
32861
515
107