Hi Sir,
I am going to the same phenomenon as below.
Can someone help me understand the reasons for this question?
Hi Sir,
I am going to the same phenomenon as below.
Can someone help me understand the reasons for this question?
Could you be more specific? What is your problem exactly? The question regarding sd_ble_gatts_value_set() or the question regarding link context manager? The developer in the provided link also posted an answer. What specifically about this did you not understand?
Best regards,
Simon
What is sd_ble_gatts_value_set() actually do? It seems not really update to the database of server side. Or I should only do blcm_link_ctx_get() to write database?
What is sd_ble_gatts_value_set() actually do? It seems not really update to the database of server side. Or I should only do blcm_link_ctx_get() to write database?
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