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

Question about read operation

Hello! I want to ask about read operation on nrf51822. In your examples, as I understand, BT stack handles Read Request automatically and then sends Read Response. The value that I try to read is Attribute in Service Table (for example only read permission without notify/indicate). To keep this value actual I must call sd_ble_gatts_value_set() when it changes. Can I set attribute value only during processing Read Request? Because I don't want to track all the time this value. I only need send actual value in Read Response after Read Request. Thank you for answer!

Artem Zemlyanuklhin Woodenshark

Parents
  • Hello, 

    Is there another way to update the data for a read-only characteristic, without using read authorization? 

    For example, is it possible when giving the characteristic initial values, to provide a pointer to a strucure which holds the data. You will update this structure and the data will be up to date when the characteristic is read. 

Reply
  • Hello, 

    Is there another way to update the data for a read-only characteristic, without using read authorization? 

    For example, is it possible when giving the characteristic initial values, to provide a pointer to a strucure which holds the data. You will update this structure and the data will be up to date when the characteristic is read. 

Children
No Data
Related