This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Authorized write request with VLOC_USER

Hello,

i have a characteristic kept in user space with VLOC_USER. It has read/write with response props and has auth permissions set, both for read and write.

In the past i experienced weird behaviour because i was setting the update flag to 1 in the auth read reply.

Now I have tried the auth write request, and found that it always fails the reply with INVALID_PARAM error. Looks like this is caused by update flag set to 0.

According to the documentation on update flag:

If set, data supplied in p_data will be used to update the attribute value. Please note that for BLE_GATTS_OP_WRITE_REQ operations this bit must always be set, as the data to be written needs to be stored and later provided by the application.

Is it safe to use update=1 in reply params if characteristic value is kept in VLOC_USER?

Thank you

Parents Reply Children
No Data
Related