Hi,
I'm trying to figure out which characteristic I'm looking for in my BT device. It has 17 characteristics in 6 services. I can see all the UUIDs and it seems to be smoother with 4.4 KitKat. However, I'm trying to figure out how to get the actual values. Unfortunately I don't know exactly which characteristic has the info I'm looking for so I was trying them all. I do get values (the length is greater than 0) but they come out as ASCII characters in the Log window.
The is the line I'm running:
Log("Characteristic: " & Characteristic.Uuid & " value = " & Characteristic.GetStringValue(0))
And this is what I see (for one of the characteristics):
Characteristic: 00002a23-0000-1000-8000-00805f9b34fb value = k�����"��
The only one that is displayed properly is the name of the device which is obviously a string. How can I convert that to make it readable?
I'm trying to figure out which characteristic I'm looking for in my BT device. It has 17 characteristics in 6 services. I can see all the UUIDs and it seems to be smoother with 4.4 KitKat. However, I'm trying to figure out how to get the actual values. Unfortunately I don't know exactly which characteristic has the info I'm looking for so I was trying them all. I do get values (the length is greater than 0) but they come out as ASCII characters in the Log window.
The is the line I'm running:
Log("Characteristic: " & Characteristic.Uuid & " value = " & Characteristic.GetStringValue(0))
And this is what I see (for one of the characteristics):
Characteristic: 00002a23-0000-1000-8000-00805f9b34fb value = k�����"��
The only one that is displayed properly is the name of the device which is obviously a string. How can I convert that to make it readable?