Hello.
How we can scan and communicate with Classic BT and BLE in one app in the Android phone/device equipped with BT4.1 for example?
Thing is about that I have IoT device that can be equipped with HM-10 for iOS and my application for it work fine, even that I must send about 50 bytes at one time. I simply collect them till CRLF is found and then begin parsing the data.
But sometimes device can be equipped with HC-05 and my app for this device also work fine with AsyncStreams in the Android.
I want to ask if someone can share some of ready to use solution for switching services (I use starter service like newest examples shows) to choose BLE/Classic.
I`m not lazy. I`m working on that and want to learn from the better of me. Maybe I miss something and then please link me.
Thanks in advance.
BARTek
EDIT:
In my app I have:
Public ManagerC As BluetoothManager
Public ManagerB As BleManager2
B for BLE, C for Classic so I think they can be somehow choosed.
How we can scan and communicate with Classic BT and BLE in one app in the Android phone/device equipped with BT4.1 for example?
Thing is about that I have IoT device that can be equipped with HM-10 for iOS and my application for it work fine, even that I must send about 50 bytes at one time. I simply collect them till CRLF is found and then begin parsing the data.
But sometimes device can be equipped with HC-05 and my app for this device also work fine with AsyncStreams in the Android.
I want to ask if someone can share some of ready to use solution for switching services (I use starter service like newest examples shows) to choose BLE/Classic.
I`m not lazy. I`m working on that and want to learn from the better of me. Maybe I miss something and then please link me.
Thanks in advance.
BARTek
EDIT:
In my app I have:
Public ManagerC As BluetoothManager
Public ManagerB As BleManager2
B for BLE, C for Classic so I think they can be somehow choosed.
Last edited: