BLE "Generic Access Service"


Laurence Pasteau
 

Hi everyone,


I am trying to write an application that offers BLE connectable services with zephyr.

In this application, we would like to have the "Device name" caracteristics of the "generic access service" with Read and Write property.

This service, mandatory with Read property, is registered automatically in the bt_conn_init() during bt_gatt_init(). If I correctly understood, the write property, in the standard, is optional but available.

https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.generic_access.xml


Does anybody know how I can add the write property for this service ? I don't know how it is possible to unregister mandatory services and then register the same service but with the write property, or if there is a cleaner way.


Thanks in advance for any help,

Laurence Pasteau

Join devel@lists.zephyrproject.org to automatically receive all group messages.