I'm just started with BLE. I need to read the values inside the Characteristics (byte, char, int... ) that a microprocessor+BLE send to my tablet and that I see. I'm using "BLE_Example".
Someone can help me?
Hi,
the connection to peripheral is ok and the code is praticallythecode of BLE_Example. I append the picture of tablet during the execution. The data that I wish to extract are in the Characteristics XXXX...34f1 (uint8) and XXXX...34f2 (int). I hope that may be useful
I'm sorry but I cannot read it like this. Please post the services and characteristics from the logs. If I remember correctly the example does print them.
Public Sub ReadData
For Each s As String In ConnectedServices
manager.ReadData(s)
Log("SERVICE="&"00000000-0000-1000-8000-00805f9b34f0")
Log("CHARACTERISTIC1="&"00000000-0000-1000-8000-00805f9b34f1")
Log("CHARACTERISTIC2="&"00000000-0000-1000-8000-00805f9b34f2")
Sub DataAvailable (Service As String, Characteristics As Map)
pbReadData.Visible = False
clv.Add(CreateServiceItem(Service), 30dip, "")
For Each id As String In Characteristics.Keys
clv.Add(CreateCharacteristicItem(id, Characteristics.Get(id)), 40dip, "")
Next
End Sub
From Starter:
Sub Manager_DataAvailable (ServiceId As String, Characteristics As Map)
CallSub3(Main, "DataAvailable", ServiceId, Characteristics)
End Sub