I gor NRF_ERROR_FORBIDDEN return value when I called "sd_ble_gatts_characteristic_add" to add a new charateristic.

NRF_ERROR_FORBIDDEN  Forbidden value supplied, certain UUIDs are reserved for the stack.

I was developing a new sw in demo board. I have added some new services  and charateristics inmy project, and I tested it ,it was ok. I can find these services and charateristics . 

however when i was adding a new charateristic with a UUID 0x0030 ,I gor NRF_ERROR_FORBIDDEN return value when I called "sd_ble_gatts_characteristic_add" to add a new charateristic. (code is shown on  below pictures )

my questions : which UUIDS are reserved for the stack( S130  SwDevice ). where can i get a table of reserved UUID. so taht I can know which UUIDs i can use .

Parents
  • Hi,

    There is no documented list of forbidden UUID's, but generally that includes UUIDs for services and characteristics that are handled by the stack, and that are a few of the standard services by the Bluetooth SIG. This should not be a problem if you pick a valid UUID for your device. If you are implementin custom servics, you need to use 128 bit UUID's, and add a base for that, and refer to that bse. You can refer to the implementation in components/ble/ble_services/ble_nus/ble_nus.c for an example of adding a custom service.

  • hello Einar , 

    thank you for your reply . I know how to add a custom service and I used 128 bit UUID. 

    futhermore, I am developing based on /ble/ble_services/ble_nus/ble_nus.c. but I really met the problem when I added some new charateristics 

Reply Children
No Data
Related