Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Write DIS / HW Revision characteristic from central

Hi,

I would like to use the Device Information Service and to be able to write the HW revision string from the central device (in my case the nRF Connect app). Per default this characteristic is Read only.

Tried changing ...

BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_NO_ACCESS(&dis_init.dis_attr_md.write_perm);

to ...

BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_OPEN(&dis_init.dis_attr_md.write_perm);

The service works but is read only still. What am I missing? Do I have to create a custom service to be able to do this?

Regards

Related