AndroidBluetoothLibrary icon indicating copy to clipboard operation
AndroidBluetoothLibrary copied to clipboard

BLE and Serial in same project?

Open AshMartian opened this issue 6 years ago • 6 comments

I was wondering if it were possible to use this library to use both BLE and Bluetooth Serial at the same time (at least for scanning)? My application needs to connect to Bluetooth LE, Serial and Wifi devices, 1 active connection, but needs support for all three methods of connection. From my initial research into this library it doesn't seem possible. Am I wrong? Can both libraries be used in the same project?

AshMartian avatar Mar 08 '18 03:03 AshMartian

You are right, today is not possible. But I guess that it is possible with a small change.

I will look at this in next weekend, ok?

douglasjunior avatar Mar 08 '18 12:03 douglasjunior

Wonderful, thank you. Let me know if there’s anything I can test or do to help.

AshMartian avatar Mar 08 '18 14:03 AshMartian

I am having the same requirement - BLE and Classic scanning at the same time but just need to connect either LE or classic. Is the current library support this now?

mingdee avatar Sep 28 '18 20:09 mingdee

@mingdee I think you have to give priority to one of them if the devices doesn't support one use the other option.

jjrodcast avatar Sep 28 '18 21:09 jjrodcast

The problem becomes when you want to write actual payloads with BLE, seeing as characteristics are NOT made to tolerate byte streams.

DaBs avatar Dec 07 '18 10:12 DaBs

Hi guys. i have some requirements which needs both Bluetooth medium Bluetooth Serial and BLE as well.

like

i have to get battery level => BLE i have to update firmware => Classic bluetooth

i am very beginner in bluetooth my first question is can we connect to bluetooth in the same time ?

rizwan321 avatar Apr 18 '19 11:04 rizwan321