Bluetooth

The Web Bluetooth API is a low-level API allowing web applications to access the services exposed by nearby Bluetooth-enabled devices.

API glimpse

navigator.bluetooth.requestDevice(serviceFilters)
Scans for the device in range supporting the requested services. Returns a Promise.
device.gatt.connect()
Returns a Promise resolved with the server object providing access to the services available on the device.
server.getPrimaryService(name)
Returns a Promise resolved with the particular Bluetooth service on the device.
service.getCharacteristic(name)
Returns a Promise resolved with the GATT characteristic object.
characteristic.readValue()
Returns a Promise resolved with a raw value from the GATT characteristic.
characteristic.writeValue(value)
Writes a new value for the GATT characteristic.

Resources