W3C home > Mailing lists > Public > public-web-bluetooth-log@w3.org > July 2018

Re: [web-bluetooth] Why display “Connected: false” when pair to BLE device in Web Bluetooth API sample?

From: François Beaufort via GitHub <sysbot+gh@w3.org>
Date: Mon, 09 Jul 2018 08:04:37 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-403394773-1531123476-sysbot+gh@w3.org>
I understand why it can be confusing. To actually connect to the device, you have to call `await device.gatt.connect()`. See https://googlechrome.github.io/samples/web-bluetooth/battery-level.html

I may need to update `Connected: false` to `GATT Connected: false`. Would that help? 

See https://developers.google.com/web/updates/2015/07/interact-with-ble-devices-on-the-web#connect_to_a_bluetooth_device

-- 
GitHub Notification of comment by beaufortfrancois
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/403#issuecomment-403394773 using your GitHub account
Received on Monday, 9 July 2018 08:06:01 UTC

This archive was generated by hypermail 2.3.1 : Monday, 9 July 2018 08:06:02 UTC