This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

regarding Characteristic Properties

Hi. I'm using nRF51822, SDK12.2.0, S130 v2.0.1.

I'm trying to make a peripheral device using nRF51822.

Is it possible to define multiple Characteristic Properties?

for example, If I want characteristic 0x0001 : support read, write, write_wo_resp, notify.

Can I make the code as below?

char_md.char_props.notify = 1;
char_md.char_props.read= 1;
char_md.char_props.write= 1;
char_md.char_props.write_wo_resp= 1;

I think, it's not. I can write, read my device even i make code as below.

char_md.char_props.notify = 0;
char_md.char_props.read= 0;
char_md.char_props.write= 0;
char_md.char_props.write_wo_resp= 0;

How can I control Characteristic Properties? And is there any example code for this case?(using read, write, write_wo_resp, notify)

I hope your reply.

Related