This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Changing a Characteristic User Description

Other Parts Discussed in Thread: CC2541

Hi all,

Is it possible to change a Characteristic User Description for a GATT attribute from a phone?

What I am trying to do is get the current time and date from a phone and send it to the CC2541 over BLE.

so for example this is my characteristic user description for the time on the CC2541

static uint8 timeDescr[] = "THIS IS WHERE TIME GOES";

When I connect to the phone I want the phone to modify this attribute so timeDescr[] = "Tues 12:45:22" or something like that.

// Characteristic Value "Data"
{
{ TI_UUID_SIZE, sensorDataUUID },
GATT_PERMIT_READ, GATT_PERMIT_WRITE,
0,
&timeDescr
}

Basically I want to be able to have the same implementation as changing the device name, but the gatt attribute implementation is hidden for gattAttribute table is hidden for the device name

I have tried doing something like this, but I cant seem to get it to work, any suggestions? Thank you

  • Hi,

    David Le said:
    Is it possible to change a Characteristic User Description for a GATT attribute from a phone?

    No, that's not how characteristic description was designed for. You should use the characteristic data.

    Just create a new characteristic if you want to to have a modifiable attribute. Why would you want to change description?

    Best Regards

    Joakim