Skip to content

Timeular/ble-adapter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BLE Adapter

Get a list of installed Bluetooth adapters and if they support Bluetooth 4.0 (BLE).
Note: windows only, returns an empty list on other platforms

Doc

interface  Adapter { name: string, manufacturer: string, bleCapable: boolean, isConnected: boolean, hasProblem: boolean }
// returns a list of available bluetooth adapters
BleAdapter.list() : Array< Adapter >   

Example

const BLEAdapter = require('ble-adapter');
const bluethoothAdapter = BleAdapter.list();