Find already paired bluetooth devices automatically, when they are in range

后端 未结 2 1521
有刺的猬
有刺的猬 2020-12-28 18:14

I am no Bluetooth specialist and wondering what possibilities are available to find already paired Bluetooth devices automatically when they are range of each other.

<
2条回答
  •  醉梦人生
    2020-12-28 18:40

    After connecting the device for the first time, keep the mac address in a local list. On disconnect, use connectGatt with autoconnect set to true to automatically re-connect when you are in range.

提交回复
热议问题