This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Do I need to add the GAP service (0x1800) to my application? -> To change device name

Hello,

I want to allow users to change the device name as they like. I've been reading about it and I know what needs to be done, i.e. write to the device name characteristic, store the name in flash, and set the device name and the advertisement data each time after reset.

The thing is that I don't know how can I even write to the device name characteristic (0x2A00). I read somewhere that the Generic Access service is mandatory and it is handled internally by the softdevice. Is this true? If so, how can I see that service? I don't see it neither with NRF Connect nor with LightBlue. Or do I need to add the service myself? I just got curious because BLE_UUID_GAP is defined in ble_types.h, not in ble_srv_common.h with the rest of the SIG-defined services.

Thanks for your help!

Related