javascriptweb-bluetoothbtle

Web Bluetooth with Password


Is it possible to connect to a bluetooth device that supports Bluetooth 4.0 LE but has a password.

I can connect to the device from an iphone and print (which only supports BTLE) but when I try and connect from chrome (OSX) / web-bluetooth it does not prompt me for a password. I can return a device using:

navigator.bluetooth.requestDevice({name: 'PRINTER'})

but when I try to connect using

device.gatt.connect()

the promise never resolves.


Solution

  • Web-Bluetooth does not support Bluetooth 4.0's Secure Simple Pairing (SSP) / Pin-Codes.

    I resolved the issue by disabling the pin-code and posting a request for SSP in the bluetooth CG.