Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bluetooth-spec-gatt

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bluetooth-spec-gatt

Bluetooth UIDS from GATT specifications

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

Keywords

FAQs

Package last updated on 25 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc