Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bluetooth-hci-socket

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluetooth-hci-socket - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

8

index.js

@@ -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;

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc