Skip to content

Scan for Bluetooth devices using Bluez tools. Currently only works on Linux.

License

Notifications You must be signed in to change notification settings

paixaop/node-bluetooth-scanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Scan for Bluetooth devices using Bluez tools. Currently only works on Linux.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published