Skip to content

Retrieve the company name based on manufacturer data in bluetooth advertisements.

Notifications You must be signed in to change notification settings

diederikfeilzer/bluetooth-resolve-company

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

bluetooth-resolve-company

Instalation

npm install bluetooth-resolve-company

Usage example with the noble package

var noble = require("noble");
var manufacturers = require("bluetooth-resolve-company");

noble.on('stateChange', function (state) {
  if (state === 'poweredOn') {
    noble.startScanning([], true);
  } else {
    noble.stopScanning();
  }
});

noble.on('discover', function(peripheral){ 
  var manufacturerData = peripheral.advertisement.manufacturerData;
  if(manufacturerData) {
    console.log('Found a BLE device created by: ' + manufacturers.resolve(manufacturerData));
  }
});

About

Retrieve the company name based on manufacturer data in bluetooth advertisements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published