Bluetooth Low Energy (BLE) library

bioident

Member
Licensed User
Longtime User
I tested few comercial program and BLE work stable on Android 4.4.2
On my phone and the same version.
Something must be wrong in this implementation on B4A.
Or I have not good implementation.
Please send to me work project BLE- example code
 

bioident

Member
Licensed User
Longtime User
The BLE library is implemented based on Google documentation. It does work on most devices.

If the native callback method is not working then I don't see any workaround. Does the other app actually connect to the BLE device?
Yes, I have another application connect to BLE devices.
 

Thuong

Member
Licensed User
Longtime User
Dear
My Characteristic has array of hex byte. How can I receive to array variable?
Thank
 

Thuong

Member
Licensed User
Longtime User
You can do something like:
B4X:
Sub BLE_Connected (Services As Map)
  For Each s As BleService In Services.Values
   For Each key As String In s.GetCharacteristics
     Log(key)
      Dim c As BleCharacteristic = s.GetCharacteristics.Get(key)
   Next
Next

Dear Erel
I used this code, but log display null (nothing service found) although with BLE Scanner software from google play indicate more services
Thank
 
Top