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

Characteristic User Description - Name appears in hex format

Hi everyone,

I have added the Characteristic User Description in order to add a human-readable name for my characteristics. However, the name still appears in hex format at nRF connect

This is the code snippet related to the Characteristic User Description

 static char *user_desc_text = "LED Enable";
 
 memset(&add_char_user_desc, 0, sizeof(add_char_user_desc));      
  add_char_user_desc.max_size = strlen(user_desc_text);            
  add_char_user_desc.size = strlen(user_desc_text);                
  add_char_user_desc.p_char_user_desc = (uint8_t *)user_desc_text; 
  add_char_user_desc.is_var_len = false;                           
  add_char_user_desc.read_access = SEC_OPEN;                       
  add_char_user_desc.write_access = SEC_NO_ACCESS;                 

Any advice?

Thanks in advance

Nick

Related