Socket
Socket
Sign inDemoInstall

webbluetooth

Package Overview
Dependencies
1
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webbluetooth

Node.js implementation of the Web Bluetooth Specification


Version published
Weekly downloads
142
increased by6.77%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Node Web Bluetooth

Node.js implementation of the Web Bluetooth Specification

Circle CI npm Licence MIT

Prerequisites

Node.js > v8.14.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

Last updated on 29 Dec 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc