JSPM

bluetooth-spec-gatt

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q33715F
  • License MIT

Bluetooth UIDS from GATT specifications

Package Exports

  • bluetooth-spec-gatt

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (bluetooth-spec-gatt) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

bluetooth-spec-gatt

NPM

Bluetooth UUIDs from GATT specifications, gathered from bluetooth.org

var gatt = require('bluetooth-spec-gatt');

// getting temperature characteristic
gatt.uuid.characteristic.temperature;

{
    "title": "Temperature",
    "code": "temperature",
    "id": "0x2A6E",
    "fields": [
        {
            "name": "Temperature",
            "informativetext": "Unit is in degrees Celsius with a resolution of 0.01 degrees Celsius",
            "requirement": "Mandatory",
            "format": "sint16",
            "unit": "thermodynamic_temperature.degree_celsius",
            "decimalexponent": "-2"
        }
    ]
}

// how the unit looks like
gatt.uuid.unit["thermodynamic_temperature.degree_celsius"];

// how about short UUID?
var ref = gatt.uuid.shortUUID["0x2A6E"];
ref.scope; // characteristic
ref.code;  // temperature

gatt.uuid[ref.scope][ref.code];

Complex characteristics such as Enumeration and Bitfield is also parsed.

Fields such as Abstract, Summary, Example and Notes not parsed.

Services lacks characteristics and descriptors.

uuid.js is generated, rebuild it with npm run fetch-uuids