connect to non-discoverable bluetooth device

后端 未结 3 686
刺人心
刺人心 2021-02-15 15:30

I am developing an app for android. Just a general questions as to , if is it possible to connect to a device which is non discoverable publicly?

Thanks in advance.

3条回答
  •  温柔的废话
    2021-02-15 15:33

    By discoverable I assume you meant responding to device searchs from another device. Some manufacturers also refer to it as visible. Depending on the manufacturer of the device , some devices allow Bluetooth to be on and visibility/discover-ability to be set to off. So if you already know the Bluetooth Address (MAC Address) of the device you can directly connect to it even when the device is not discoverable/visible. In practice it is a good thing to do, many manufacturers allow for this by having the device visible only during specific periods like during the paring process or have explicit menu option to turn on discover-ability for a specific period. This is a good practice from a security stand-point as it prevents device tracking / hacking.

    iPhone for example is by default non-discoverable when Bluetooth is on, (but you can still connect to it) it is only discoverable when you enter the Bluetooth menu from the settings menu.

提交回复
热议问题