简体   繁体   中英

Prevent connection of BLE device to GATT server

Third party BLE device has attempt to connect to my GATT server, the result is that device become inaccessible for his native app. My wild guess is I should prevent connection of that device to my GATT server, but I don't know how to do that. Any suggestion? Thanx

You could configure your GATT server with a White List of devices that you wish to accept connections from. That way it will not accept connections from any 3rd party devices.

The decision was not so trivial: it is necessary to clear any links to previously discovered (scanned) BLE devices by onLeScan when app goes to background ( onPause received, but still not onDestroy ). If you still keeping these links, you'll unable to connect to those devices from other app.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM