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

webbluetooth

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webbluetooth

Node.js implementation of the Web Bluetooth Specification

  • 1.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
260
decreased by-50.29%
Maintainers
1
Weekly downloads
 
Created
Source

Node Web Bluetooth

Node.js implementation of the Web Bluetooth Specification

Circle CI npm Licence MIT

Prerequisites

Node.js > v4.8.0, which includes npm.

Installation

$ npm install webbluetooth

Getting Started

See the examples or view the API documentation at:

https://thegecko.github.io/webbluetooth/

Specification

The Web Bluetooth specification can be found here:

https://webbluetoothcg.github.io/web-bluetooth/

Implementation Status

bluetooth

  • referringDevice - specification unstable
  • getAvailability() - specification unstable
  • requestDevice()
  • RequestDeviceOptions.name
  • RequestDeviceOptions.namePrefix
  • RequestDeviceOptions.services
  • RequestDeviceOptions.optionalServices
  • RequestDeviceOptions.acceptAllDevices
  • RequestDeviceOptions.manufacturerData - specification unstable
  • RequestDeviceOptions.serviceData - specification unstable

BluetoothDevice

  • id
  • name
  • gatt
  • watchingAdvertisements - specification unstable
  • watchAdvertisements() - specification unstable
  • unwatchAdvertisements() - specification unstable

BluetoothRemoteGATTServer

  • connected
  • device
  • connect()
  • disconnect()
  • getPrimaryService()
  • getPrimaryServices()

BluetoothRemoteGATTService

  • device
  • uuid
  • isPrimary
  • getCharacteristic()
  • getCharacteristics()
  • getIncludedService()
  • getIncludedServices()

BluetoothRemoteGATTCharacteristic

  • service
  • uuid
  • properties
  • value
  • getDescriptor()
  • getDescriptors()
  • readValue()
  • writeValue()
  • startNotifications()
  • stopNotifications()

BluetoothRemoteGATTDescriptor

  • characteristic
  • uuid
  • value
  • readValue()
  • writeValue()

Events

  • availabilitychanged - specification unstable
  • gattserverdisconnected
  • characteristicvaluechanged
  • serviceadded
  • servicechanged - unsupported in noble
  • serviceremoved - unsupported in noble

Other

  • Device selector hook
  • Lookups for known services, characteristics and descriptors
  • Canonical UUID helper
  • Examples
  • API Documentation

Keywords

FAQs

Package last updated on 03 Apr 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