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

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