Hi, I'm trying to add Characteristic User Description 0x2901 and CCCD 0x2902 to a characteristic. It seems 0x2902 always comes before 0x2901 in attribute table. Is there any way to place 0x2901 before 0x2902?
Below is my code for adding 0x2901 and 0x2902. I'm currently using nRF52840 DK and SDK15.3.0. Thanks
ble_gatts_char_md_t char_md; memset(&char_md, 0, sizeof(char_md)); char_md.char_props.read = 1; char_md.char_props.write = 1; static char user_desc[] = "Reading"; char_md.p_char_user_desc = (uint8_t *) user_desc; char_md.char_user_desc_size = strlen(user_desc); char_md.char_user_desc_max_size = strlen(user_desc); ble_gatts_attr_md_t cccd_md; memset(&cccd_md, 0, sizeof(cccd_md)); BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.read_perm); BLE_GAP_CONN_SEC_MODE_SET_OPEN(&cccd_md.write_perm); cccd_md.vloc = BLE_GATTS_VLOC_STACK; char_md.p_cccd_md = &cccd_md; char_md.char_props.notify = 1;