unknown UUID error

I'm trying to get notifications from a peripheral after connecting to it. I used the central_hr example in zephyr, and I changed the UUIDs used to both primary HR service and characteristics to the ones that I see using NRF connect on iOS. when I do this, the central connects successfully but it gives me this error.

What I'm wondering is that it doesn't enter the discovery function, it always fails in the connected callback funtion (code below).

Parents
  • Hi,

    It looks like bt_gatt_discover returns -EINVAL (-22). That can be returned for a couple for different reasons, but as you chnanged some UUIDs I would assume an issue there. Perhaps a mixup between 16 bit and 128 bit UUIDs? You can use a debugger to see more precisely what went wrong by checking in bt_gatt_discover() in zephyr/subsys/bluetooth/host/gatt.c (or you can add some logging there if that is easier).

Reply
  • Hi,

    It looks like bt_gatt_discover returns -EINVAL (-22). That can be returned for a couple for different reasons, but as you chnanged some UUIDs I would assume an issue there. Perhaps a mixup between 16 bit and 128 bit UUIDs? You can use a debugger to see more precisely what went wrong by checking in bt_gatt_discover() in zephyr/subsys/bluetooth/host/gatt.c (or you can add some logging there if that is easier).

Children
Related