This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Service Notification problem - BLE_ERROR_INVALID_ATTR_HANDLE

Hello everyone,

I am trying to enable notification on a characteristic based on the code example from nAN36. Unfortunately the sd_ble_gatts_hvx() function returns:

BLE_ERROR_INVALID_ATTR_HANDLE - "Invalid attribute handle(s) supplied. Only attributes added directly by the application are available to notify and indicate."

I can't quite get the meaning of the "attributes added directly by the application". Any ideas how to interpret that or general guidelines how to approach this problem?

The setup is: ARMGCC + S110 + 51822. I am testing it with the nRF Master Control Panel, where it says that the notifications are enabled.

Thank you in advance!

Related