简体   繁体   中英

Send and Receive data simultaneously via Bluetooth in Android

I want to know whether we can connect 2 Bluetooth devices to the Android device and share data in realtime in Android? ie I have a sensor connected to the Android device and I want to stream or listen or broadcast the data which is received from Sensor to the Headset(Connected to that same Android device). Is it possible in Android?? Please suggest. Thanks in advance.

Scenario: Sensor ->(Bluetooth) -> Android App ->(Bluetooth) -> HeadPhone

Indeed you can however bluetooth communication is wide there is BLE which is from bluetooth 4 and communication is absolutely diferent from the normal earlier bt.i would suggest you take a look at bluetoothchat https://github.com/googlearchive/android-BluetoothChat there is plenty of code to communicate on bt<4 and for BLE check https://github.com/hoyuisun/iGaDs/tree/master/Tibbo_android

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