简体   繁体   中英

Can two apps read data from the same BLE sensor in Android?

Can two independent apps (on the same phone) read the data from the same BLE sensor?

Case in point: Can I develop an app that gets the HR from a BT HR sensor while another app is already connected to it?

No you can only have one active connection at the same time. For two handsets to read from one heart rate monitor you would have to connect one, do a read, disconnect, connect the other, do a read.

A possible workaround is if you include the heartrate in the advertisement packet. This way you don't even have to be connected at all.

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