Hi, I wrote a sample application to remotely control and led on nrf51822_xxaa module. in the application I was able to provide configuration to the characteristics as well as attributes using the char_props
for the characteristics (for options like write/read/notify etc.) and also read/write permission to the attributes using read_perm
and write_perm
in ble_gatts_attr_md_t
structure during addition of characteristics to the service. I tried turning on and off the leds with following settings and results:
actually the control over attribute in characteristics is independent of read_perm
and write_perm
in ble_gatts_attr_md_t
and dependent of char_props
for the characteristics. why is it so? and if so, what is the significance of the read_perm
and write_perm
in ble_gatts_attr_md_t
.