1.2.14 • Published 7 years ago
device-ble-scan v1.2.14
BLE-Scanner
An easy to use ble-scanner (bluetooth smart / 4.0) for node. Requires a Linux OS with bluez stack tools (hciconfig, hcitool, hcidump) to be installed.
Usage
The ble-scanner is designed as a singleton class. It can be used as followed:
#require module
Scanner = require("ble-scanner");
# define input
device = "hci0";
callback = (packet) ->
# packet is an array with hex values
console.log "Received Packet: " + packet
# create new Scanner
bleScanner = new Scanner(device,callback);
The code above will result in every packet received to be logged to the console.
Notes
- The device is used to make sure the specific device is up. The scan is not device specific.
- The callback is handed an array with hex-values as strings. Interpreting the packet is not done by ble-scanner.
Known issues
- HCITOOL does not terminate correctly.
1.2.14
7 years ago
1.2.1-3.b
7 years ago
1.2.1-3.a
7 years ago
1.2.13
7 years ago
1.2.12
7 years ago
1.2.1-1.d
7 years ago
1.2.1-1.c
7 years ago
1.2.1-1.b
7 years ago
1.2.1-1.a
7 years ago
1.2.11
7 years ago
1.2.10
7 years ago
1.2.9
7 years ago
1.2.8
7 years ago
1.2.7
7 years ago
1.2.6
7 years ago
1.2.5
7 years ago
1.2.4
7 years ago
1.2.3
7 years ago
1.2.2
7 years ago