Unity-Android-Bluetooth-Low-Energy icon indicating copy to clipboard operation
Unity-Android-Bluetooth-Low-Energy copied to clipboard

Can't read characteristic values

Open JaviNunsys opened this issue 1 year ago • 1 comments

I'm having an issue and i don't know how to solve it. I'm discovering, filtering and connecting successfully to my devices, but when I try to get the data, the android logcat don't debug any information. I'm using the same code of the sample but changing the Uuid. I made a test for that characteristic with nrf connect and got what you can see in the second image. Any hint on how to solve this? Is it because of disabled notifications? If so, do you know how can i enable it?

image

image

JaviNunsys avatar Sep 10 '24 10:09 JaviNunsys

Hi @JaviNunsys , we've got a known bug at the moment, can you try using lowercase server and characteristic UUID and see if that works. I'm writing a pull request but I don't have write access to the repo so have to wait for Velorexe to approve.

paulhayes avatar Sep 20 '24 10:09 paulhayes

Did that fix it @JaviNunsys? I'll repopen if you are still having issues.

paulhayes avatar Dec 01 '24 18:12 paulhayes

Hi! I forgot to post the solution. The problem was the execution order. I wasn't waiting enough for the sensor to be ready before trying to subscribe the characteristic

JaviNunsys avatar Dec 02 '24 08:12 JaviNunsys

Great, thanks for letting us know.

paulhayes avatar Dec 02 '24 09:12 paulhayes