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

Difference between attr_char_value.init_len and attr_char_value.max_len

Hi,

When creating and adding an characteristic to service, what the meaning and difference between these two variables:

attr_char_value.init_len 
attr_char_value.max_len   

To give context, my aim is to write a value of variable length to a characteristic. I have set the variable vlen to one as it was zero

attr_md.vlen    = 1; // = 0;
Related