bluetooth: GATT Server is undefined. |
|||||
Issue descriptionFrom: https://github.com/WebBluetoothCG/web-bluetooth/issues/232 After .requestDevice, I'm unable to get server out of next promise. Would love advice about what is happening. Thanks in advance! navigator.bluetooth.requestDevice({filters: [{namePrefix: ['BB']}]}) .then(device => { //I am getting device object here return device.gatt.connect(); }) .then(server => { //server coming back undefined. server.getPrimaryService("22bb746f-2bb0-7554-2d6f-726568705327"); });
,
Apr 28 2016
Thanks so much for your help. We actually finally managed to get it working. The work you guys are doing is fantastic.
,
Apr 28 2016
Great! Feel free to open an issue if you run into any problems or have suggestions.
,
Jan 3 2017
I have the same problem. 1. Platform : Mac OSX 10.11.5 2. Chrome version : Chrome 55.0.2883.95 (same problem on Chrome Canary 57.0.2970.0) 3. You can find a log file in attachments Thank you :-)
,
Jan 3 2017
Hello Fabien, Could it be that the TGV Bluetooth Device is NOT a Bluetooth Low Energy device but a Bluetooth Classic device?
,
Jan 3 2017
Also, would you post your JavaScript that corresponds with those logs?
,
Jan 5 2017
,
Jan 5 2017
Hello ! It's really a BLE device, I managed to get it working too. Thank you guys !
,
Jan 5 2017
That's great to hear. Just for the record, how did you fix it? |
|||||
►
Sign in to add a comment |
|||||
Comment 1 by ortuno@chromium.org
, Apr 26 2016