Hey everyone,
I have an application where I have to write data to a characteristic. I would like to only allow reliable writes (not unacknowledged ones). Is this permitted by the specification? (and by the s110 softdevice)
Hey everyone,
I have an application where I have to write data to a characteristic. I would like to only allow reliable writes (not unacknowledged ones). Is this permitted by the specification? (and by the s110 softdevice)
Yes. This is done by setting the following parameters when creating the characteristic:
ble_gatts_char_md_t char_md;
char_md.char_props.write = 1;
char_md.char_props.write_wo_resp = 0;
This way only the safe 'Write Request' is allowed, not the unsafe 'Write Command'.
Yes. This is done by setting the following parameters when creating the characteristic:
ble_gatts_char_md_t char_md;
char_md.char_props.write = 1;
char_md.char_props.write_wo_resp = 0;
This way only the safe 'Write Request' is allowed, not the unsafe 'Write Command'.
I don't think this is correct. Please see my answer.