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.

CC2340R5: GATT settings. About registering device names.

Part Number: CC2340R5
Other Parts Discussed in Thread: SYSCONFIG

I would like to know about bluetooth device name registration.
In the sample code, the Basic BLE project is registered in sysconfig> BLE> General Configuration> Device Name, and I think this is the device name.
What controls should be performed when you want to safely change this device name during software execution?

After investigating, I recognize that appMainParams.deviceNameAtt is related to the device name.
Also, these are registered with "bleStack_initGatt" and "GGS_SetParameter".
Will it be possible to register with the device name by using these?

  • Hi,

    You are correct! The device name is stored in attDeviceName. This variable is set to whaterver value is configured in SysConfig.If you simply would like to change the device name when other devices scan your peripheral, then you can simply change the contents of scanResData1 and reload the scan response data into your advertisement handle. This will make it such that other devices that scan you peripheral will receieve a different name.

    Best Regards,

    Jan