Skip to content

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

License

Notifications You must be signed in to change notification settings

reelyactive/advlib-ble-gatt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advlib-ble-gatt

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

advlib-ble-gatt is a lightweight Node.js package with no dependencies.

Installation

npm install advlib-ble-gatt

Hello advlib-ble-gatt!

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

let protocolSpecificData = {
  gatt: [ { serviceUuid: "1c930003d45911e79296b8e856369374",
            characteristicUuid: "1c930038d45911e79296b8e856369374",
            value: "480d" },
          { serviceUuid: "1c930003d45911e79296b8e856369374",
            characteristicUuid: "1c930032d45911e79296b8e856369374",
            value: "c019" } ]
};

let processedData = advlib.processProtocolSpecificData(protocolSpecificData);

console.log(processedData);

Which should yield the following console output:

{ batteryVoltage: 3.4, temperature: 25.75 }

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

Supported Services

The following services, in order of their UUID, are supported by advlib-ble-gatt.

Service UUID(s) /lib file
1c93xxxx-d459-11e7-9296-b8e856369374 bluvib.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) 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.

About

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

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published