Skip to content

Open source library for decoding ambient Bluetooth Low Energy (BLE) advertising packet service data. We believe in an open Internet of Things.

License

Notifications You must be signed in to change notification settings

reelyactive/advlib-ble-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advlib-ble-services

Wireless advertising packet decoding library for Bluetooth Low Energy service data. advlib-ble-services 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-services

advlib-ble-services 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-manufacturers.

Installation

npm install advlib-ble-services

Hello advlib-ble-services!

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

let uuid = 'feaa';
let serviceData = '10000367657470617265746f07';

let processedData = advlib.processServiceData(uuid, serviceData);

console.log(processedData);

Which should yield the following console output:

{ txPower: 0, uri: "https://getpareto.com" }

Supported Services

The following services, in order of their assigned UUIDs, are supported by advlib-ble-services.

Service UUID Service Name /lib file
0x2a07 Tx Power Level gatt.js
0x2a19 Battery Level gatt.js
0x2a37 Heart Rate Measurement gatt.js
0x2a67 Location and Speed gatt.js
0x2a6c Elevation gatt.js
0x2a6d Pressure gatt.js
0x2a6e Temperature gatt.js
0x2a6f Humidity gatt.js
0x2aa1 Magnetic flux density 3D gatt.js
0x2aa2 Language gatt.js
0x2aee Electric Current gatt.js
0x2af9 Generic Level gatt.js
0x2afb Illuminance gatt.js
0x2b18 Voltage gatt.js
0x2b8c CO2 Concentration gatt.js
0x2bcf Ammonia Concentration gatt.js
0x2bd0 Carbon Monoxide Concentration gatt.js
0x2bd1 Methane Concentration gatt.js
0x2bd2 NO2 Concentration gatt.js
0x2be4 Noise gatt.js
0x2be7 VOC Concentration gatt.js
0xfd6f Exposure Notification exposurenotification.js
0xfd9f Hewlett Packard Enterprise hewlettpackardenterprise.js
0xfdaf Wiliot wiliot.js
0xfeaa Eddystone (Google) eddystone.js
0xffe1 Minew minew.js

Consult the Bluetooth Assigned Numbers page for the most recent 16-bit UUIDs document.

Supported Devices

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

Manufacturer Model/Device /lib file
Various Heart rate monitor gatt.js
Various Eddystone beacon eddystone.js
Various Android phone (contact tracing) exposurenotification.js
Apple iPhone (contact tracing) exposurenotification.js
Wiliot Pixel wiliot.js
Minew E8S (Tutorial) minew.js
Minew S1 (Tutorial) minew.js
Minew B10 (Tutorial) minew.js
Minew MSP01 (Tutorial) minew.js
Minew MSV01 minew.js
Minew MBT01 minew.js
Minew MSL01 minew.js
Arduino Nicla Vision (Tutorial) gatt.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.

Releases

No releases published

Packages

No packages published