Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

I've created a characteristic that has the "Write" checkbox checked under it's properties. However, using an app I downloaded to write to a characteristic, the value I want to change it to won't be written. Is there any C code that needs to be implemented?

0 Likes
1 Solution
Anonymous
Not applicable

IDK, I had those permissions before, but after looking at some sample code I ended up using these props/permissions:

LEGATTDB_CHAR_PROP_READ | LEGATTDB_CHAR_PROP_WRITE


LEGATTDB_PERM_VARIABLE_LENGTH | LEGATTDB_PERM_READABLE | LEGATTDB_PERM_WRITE_CMD | LEGATTDB_PERM_WRITE_REQ | LEGATTDB_PERM_RELIABLE_WRITE


And it started writing correctly. I think I was missing the Variable Length permission and that was causing it not to work.

View solution in original post

0 Likes
4 Replies