This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

error BLE_ERROR_INVALID_ATTR_HANDLE

Hi,

I want to add custom characteristic to NRF THINGY:52.

I am getting BLE_ERROR_INVALID_ATTR_HANDLE while I update the value to the characteristic.

Update is done through main application and I placed the characteristic properties in ble_tes

Do you have any hints why get this error ?

Parents
  • The function sd_ble_gatts_hvx returns BLE_ERROR_INVALID_ATTR_HANDLE ? If so, then that means that a invalid attribute handle is supplied. Only attributes added directly by the application are available to notify and indicate.

    Services, characteristics and descriptors are attributes. You add them by with

    sd_ble_gatts_service_add() sd_ble_gatts_characteristic_add() sd_ble_gatts_descriptor_add()

    These return the attribute handles that are use in the attribute table.

Reply
  • The function sd_ble_gatts_hvx returns BLE_ERROR_INVALID_ATTR_HANDLE ? If so, then that means that a invalid attribute handle is supplied. Only attributes added directly by the application are available to notify and indicate.

    Services, characteristics and descriptors are attributes. You add them by with

    sd_ble_gatts_service_add() sd_ble_gatts_characteristic_add() sd_ble_gatts_descriptor_add()

    These return the attribute handles that are use in the attribute table.

Children
No Data
Related