bluetooth-scanner
v1.0.1
Published
Bluetooth 4.0 LE scanner to find near by Bluetooth devices.
Downloads
4
Readme
Bluetooth-Scanner
An easy to use bluetooth scanner for node. Requires a Linux OS with bluez stack tools (hciconfig, hcitool, hcidump) to be installed.
Usage
The bluetooth-scanner is designed as a singleton class. It can be used as followed:
#require module
Scanner = require("bluetooth-scanner");
# define input
var device = "hci0";
# Scan for devices
bleScanner = new Scanner(device, function(mac, name) {
console.log('Found device: ' + name);
});
The callback function will be called for each device found.
Credits
Based on BLE-Scanner from Martin Gradler
License
MIT