douglasjunior / AndroidBluetoothLibrary

A Library for easy implementation of Serial Bluetooth Classic and Low Energy on Android. 💙
MIT License
224 stars 68 forks source link

BLE and Serial in same project? #15

Open AshMartian opened 6 years ago

AshMartian commented 6 years ago

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?

douglasjunior commented 6 years ago

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?

AshMartian commented 6 years ago

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

mingdee commented 6 years ago

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?

jjrodcast commented 6 years ago

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

DaBs commented 5 years ago

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

rizwan321 commented 5 years ago

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 ?