Home

Awesome

advlib-ble-manufacturers

Wireless advertising packet decoding library for Bluetooth Low Energy manufacturer-specific data. advlib-ble-manufacturers is typically used as a library for advlib-ble which itself is commonly a processor module of the protocol-agnostic advlib.

Overview of advlib-ble-manufacturers

advlib-ble-manufacturers is a lightweight Node.js package with no dependencies. It is included in reelyActive's Pareto Anywhere open source IoT middleware. See also its sister library advlib-ble-services.

Installation

npm install advlib-ble-manufacturers

Hello advlib-ble-manufacturers!

const advlib = require('advlib-ble-manufacturers');

let companyCode = 0x004c;
let manufacturerData = '021500112233445566778899aabbccddeeff01234567fc';

let processedData = advlib.processManufacturerSpecificData(companyCode,
                                                           manufacturerData);

console.log(processedData);

Which should yield the following console output:

{ deviceIds: [ '00112233445566778899aabbccddeeff/0123/4567' ],
  txPower: -4,
  uri: "https://sniffypedia.org/Organization/Apple_Inc/iBeacon/" }

The advlib-ble-manufacturers library observes these standard properties.

Supported Manufacturers

The following manufacturers, in order of their assigned company codes, are supported by advlib-ble-manufacturers.

Company CodeManufacturer/lib file
0x004cAppleapple.js
0x0059Nordic Semiconductornordicsemiconductor.js
0x0077Laird Connectivitylairdconnectivity.js
0x026cEfentoefento.js
0x03daEnOceanenocean.js
0x0500Wiliotwiliot.js
0x0583Code Blue Communicationscodebluecommunications.js
0x0590Pur3 Ltd (Espruino)pur3ltd.js
0x0639Minewminew.js
0x0a62MOKO Technologymokotechnology.js

Consult the Bluetooth Assigned Numbers for Company Identifiers for the most recent listing of company code assignments.

Supported Devices

The following is a non-exhaustive list of devices supported by advlib-ble-manufacturers.

ManufacturerModel/Device/lib file
AppleiBeaconapple.js
MOKOSmartS02R (ToF Sensor)nordicsemiconductor.js
LairdBT610lairdconnectivity.js
EnOceanEMSIB (STM 550B)enocean.js
EnOceanEMDCBenocean.js
WiliotIoT Pixelwiliot.js
MinewS3minew.js
MinewS4minew.js
MinewMBT02minew.js
MinewMSR01minew.js
MinewMTB02minew.js
MOKOSmartP1mokotechnology.js
MOKOSmartS03D (Door Sensor)mokotechnology.js

Contributing

Discover how to contribute to this open source project which upholds a standard code of conduct.

Security

Consult our security policy for best practices using this open source software and to report vulnerabilities.

License

MIT License

Copyright (c) 2015-2024 reelyActive

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.