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

nRF52 -- HID Get Feature Report from Host

Hi Sir,

I am going to the same phenomenon as below.

https://devzone.nordicsemi.com/f/nordic-q-a/45554/sdk-15-2-how-to-set-a-value-to-a-hid-feature-report

Can someone help me understand the reasons for this question?

Parents Reply Children
  • As mentioned here, the function sd_ble_gatts_value_set() can update the local database on the server side as well as notifying it to the client. Read more here for a more detailed explanation of the function.

    How do you confirm that the database on the server side is not updated? Try to read ble_gatts_hvx_params_t::p_len after calling sd_ble_gatts_value_set(), if it is a non-zero value, then you know the database has been updated.

    Best regards,

    Simon

Related