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

Manipulating an Authenticated Read on BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST only once for every update

Hello,

I am working with the NRF52480 and started with SDK15.

I have reached a point where I would like to manipulate the value that is being written or read from a characteristic in my application using the actual value.  I am using Authenticated reads and writes on all of my characteristics.

The problem I have encountered is that I only ever want to do this once on any value in the characteristic.  I manipulate the value on the first read and update the characteristic, on the second read I update the already updated value and this is not the desired functionality.

My understanding leads me to believe that I either need to manipulate the "ble_gatts_rw_authorize_reply_params_t" value on the "sd_ble_gatts_rw_authorize_reply" without changing the value in the database or flag the value as manipulated already in the application.  This would need to be reset every time the character is updated elsewhere in characteristic handlers.  I am not sure how to handle this and am open to any suggestions.

Thanks for the help in advanced,

Bloq

Parents Reply Children
No Data
Related