简体   繁体   中英

Can an Android app discover a local BLE GATT server?

If Android app A sets up a BLE GATT server, can Android app B (on the same device) discover and connect to that GATT server as a client?

No this shouldn't be possible because Bluetooth doesn't allow a device to connect to itself. I can't find in the spec where it specifically states this, but I have tried to do this using different Bluetooth stacks in the past and I wasn't able to.

Some information is provided here:-

Loopback in Android Bluetooth

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