Android Question Ble problem

Umberto Bianchi

Member
Licensed User
Longtime User
Hi,
i scan my Geonaute BLE HRM, and have thys LOG:

** Service (starter) Create **
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
BLE Supported: true
** Activity (main) Resume **
Scan
DeviceFound
Name= Geonaute BLE HRM
ID= D0:5F:B8:10:B9:CC
Conncting...
Discovering services.
Connected:
Srvice[0] = 00001800-0000-1000-8000-00805f9b34fb
CharKey(0) = 00002a00-0000-1000-8000-00805f9b34fb
CharVal(0) = android.bluetooth.BluetoothGattCharacteristic@42dcaaa0
CharKey(1) = 00002a01-0000-1000-8000-00805f9b34fb
CharVal(1) = android.bluetooth.BluetoothGattCharacteristic@42dcb360
CharKey(2) = 00002a02-0000-1000-8000-00805f9b34fb
CharVal(2) = android.bluetooth.BluetoothGattCharacteristic@42dcbbd8
CharKey(3) = 00002a03-0000-1000-8000-00805f9b34fb
CharVal(3) = android.bluetooth.BluetoothGattCharacteristic@42dcc468
CharKey(4) = 00002a04-0000-1000-8000-00805f9b34fb
CharVal(4) = android.bluetooth.BluetoothGattCharacteristic@42dccce0
Srvice[1] = 00001801-0000-1000-8000-00805f9b34fb
CharKey(0) = 00002a05-0000-1000-8000-00805f9b34fb
CharVal(0) = android.bluetooth.BluetoothGattCharacteristic@42dcd650
Srvice[2] = 0000180d-0000-1000-8000-00805f9b34fb
CharKey(0) = 00002a37-0000-1000-8000-00805f9b34fb
CharVal(0) = android.bluetooth.BluetoothGattCharacteristic@42dce0c8
CharKey(1) = 00002a38-0000-1000-8000-00805f9b34fb
CharVal(1) = android.bluetooth.BluetoothGattCharacteristic@42dceb20
CharKey(2) = 00002a39-0000-1000-8000-00805f9b34fb
CharVal(2) = android.bluetooth.BluetoothGattCharacteristic@42dcf518
Srvice[3] = 0000180a-0000-1000-8000-00805f9b34fb
CharKey(0) = 00002a23-0000-1000-8000-00805f9b34fb
CharVal(0) = android.bluetooth.BluetoothGattCharacteristic@42dcffd0
CharKey(1) = 00002a24-0000-1000-8000-00805f9b34fb
CharVal(1) = android.bluetooth.BluetoothGattCharacteristic@42dd0ad0
CharKey(2) = 00002a25-0000-1000-8000-00805f9b34fb
CharVal(2) = android.bluetooth.BluetoothGattCharacteristic@42dd1588
CharKey(3) = 00002a26-0000-1000-8000-00805f9b34fb
CharVal(3) = android.bluetooth.BluetoothGattCharacteristic@42dd2040
CharKey(4) = 00002a27-0000-1000-8000-00805f9b34fb
CharVal(4) = android.bluetooth.BluetoothGattCharacteristic@42dd2af8
CharKey(5) = 00002a28-0000-1000-8000-00805f9b34fb
CharVal(5) = android.bluetooth.BluetoothGattCharacteristic@42dd35c8
CharKey(6) = 00002a29-0000-1000-8000-00805f9b34fb
CharVal(6) = android.bluetooth.BluetoothGattCharacteristic@42dd4080
CharKey(7) = 00002a2a-0000-1000-8000-00805f9b34fb
CharVal(7) = android.bluetooth.BluetoothGattCharacteristic@42dd4b38
CharKey(8) = 00002a50-0000-1000-8000-00805f9b34fb
CharVal(8) = android.bluetooth.BluetoothGattCharacteristic@42dd55f0
Srvice[4] = 0000180f-0000-1000-8000-00805f9b34fb
CharKey(0) = 00002a19-0000-1000-8000-00805f9b34fb
CharVal(0) = android.bluetooth.BluetoothGattCharacteristic@42dd61a0
** Activity (main) Pause, UserClosed = false **
But i don't ablie to convert the CharVal

It's possible have same help?
Thanks
Umberto
 

Umberto Bianchi

Member
Licensed User
Longtime User
I use BLE library
B4X:
Sub ble_Connected(Services As Map)
   Log("Connected:")
   
   Dim mCh     As Map
   mCh.Initialize   
   For i = 0 To Services.Size -1
     Serv = Services.GetValueAt(i)
     Log("  Srvice[" & i & "] = " & Services.GetKeyAt(i))
     mCh = Serv.GetCharacteristics
     For x = 0 To mCh.Size -1
       Log("  CharKey(" & x & ") = " & mCh.GetKeyAt(x))       
       Log("  CharVal(" & x & ") = " & mCh.GetValueAt(x))
       
     Next
   Next

End Sub
 
Upvote 0

Similar Threads

Replies
8
Views
3K
Replies
9
Views
2K
  • Question
Android Question BLE_EXAMPLE
Replies
2
Views
2K
Replies
14
Views
5K
Cookies are required to use this site. You must accept them to continue using the site. Learn more…