cancel
Showing results for 
Search instead for 
Did you mean: 

Can't add Client configuration descriptor CHAR_CLIENT_CONFIG_DESC_UUID

stst9181
Associate II
Posted on November 02, 2016 at 21:32

I'm trying to add a ''Client configuration descriptor'' to a characteristic using the following function call.  However, it returns a status of 0x61 (invalid parameter) with no indication of which parameter is invalid.

This call DOES WORK for all valid descriptors except for ''CHAR_CLIENT_CONFIG_DESC_UUID'' and ''CHAR_SERVER_CONFIG_DESC_UUID''.  

Anybody have any idea which parameter my be wrong?

--------------------------------------------------------------------

uuid16 = CHAR_CLIENT_CONFIG_DESC_UUID;

uint16_t descHandle;

charactFormat charFormat;

charFormat.format = FORMAT_UTF8S;

charFormat.exp = 0;

charFormat.unit = UNIT_UNITLESS;

charFormat.name_space = 0;

charFormat.desc = 0;

status = aci_gatt_add_char_desc(service_handle,

characteristic_handle, 

UUID_TYPE_16, 

uuid16,

7,

7,

  (void *)&charFormat, 

ATTR_PERMISSION_NONE, 

ATTR_ACCESS_READ_ONLY | ATTR_ACCESS_READ_WRITE, 

01, 

16, 

FALSE, 

&descHandle);

1 REPLY 1
Posted on November 03, 2016 at 09:09

Dear Customer,

it's not possible to add these descriptors manually. These descriptors are added automatically when a characteristic with Notify/Indication or Broadcast property are created.

Regards,

GM