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

Re: [web-bluetooth] How to connect to a specific bluetooth device without scanning with mac address

From: MadhusudhanKurimeti via GitHub <sysbot+gh@w3.org>
Date: Wed, 21 Nov 2018 07:14:36 +0000
To: public-web-bluetooth-log@w3.org
Message-ID: <issue_comment.created-440561342-1542784465-sysbot+gh@w3.org>
Thanks for your quick response. Let me explain clearly what I'm trying to achieve.
There are some BLE devices whose mac addresses are known to me. When a user requests, the server will assign a BLE device to that user only for once and will send its mac address. Now the user should be able to connect to that device without asking to choose from the list of devices by using the mac address which will be sent by the server.
In my android app I achieved it by 
remoteDevice = btAdapter.getRemoteDevice("xx:xx:xx:xx:xx:xx");
remoteDevice.connectGatt(getActivity(), false, mGattCallback);

Is there any way I can achieve it using web bluetooth api's ?

GitHub Notification of comment by MadhusudhanKurimeti
Please view or discuss this issue at https://github.com/WebBluetoothCG/web-bluetooth/issues/417#issuecomment-440561342 using your GitHub account
Received on Wednesday, 21 November 2018 07:14:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 21 November 2018 07:14:39 UTC