Other Parts Discussed in Thread: CC2640,
Hello,
I have been working with a CC2640 and the BLE4.2 stack (simplelink_cc264r2_sdk_2_30_00_28) and adding the following lines allowed me to grant Write access to the Device name characterisitic:
uint8 devNamePermission = GATT_PERMIT_READ | GATT_PERMIT_WRITE;
GGS_SetParameter(GGS_W_PERMIT_DEVICE_NAME_ATT, sizeof(uint8_t), &devNamePermission);
Then I used the corresponding callback to save the new name in the flash and change the scan response. Now I'm trying to do the same with a CC2642R using the simplelink_cc13x2_26x2_sdk_3_20_00_68 and it doesn't work anymore.
First, the GGS_W_PERMIT_DEVICE_NAME_ATT parameter is not defined by default, I have first to define TESTMODES. Even doing so, characteristic is still read-only. Then I have tried to set GGS test mode to GGS_TESTMODE_W_PERMIT_DEVICE_NAME, but it is impossible: in gap.h are the test modes of the different parts (GAP, GATT, ATT, ...) defined, except for GGS.
Can you tell me what I have to do to grant write permission to this characteristic? As far as I know, Bluetooth specifications allow it (write permission is declared as Optional, but not Excluded).
Thank you for your help.
Regards.