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.

Renaming the device name of CC2541

Hi,

 

I wanted to make my peripheral device name user configurable from the client application (eg BLE device monitor).

Say example if an user has 10 SensorTag BLE devices, he should be reconfigure the device name to SensorTag1, SensorTag2 etc or SensorTagA, SensorTagB etc from Windows or Android based the client APP.

I made the below changes

// GAP GATT Attributes

static uint8 attDeviceName[GAP_DEVICE_NAME_LEN] = "My Device";

uint8 devNamePermission = GATT_PERMIT_READ|GATT_PERMIT_WRITE;

 

// Set the GAP Characteristics

GGS_SetParameter( GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof ( uint8 ), &devNamePermission );

GGS_SetParameter( GGS_DEVICE_NAME_ATT, sizeof(attDeviceName), attDeviceName );

 

I edited the Device_Name characteristics (@ Generic Access Profile Service) from BLE Device Monitor Android App as "My new device".

But, this changed value is not persistent. After device restarts, its showing the old value "My Device". Am I doing anything wrong here? Please help me.

 

Javahar