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

updating data between application layer and stack

Hello, I have some characteristics on my device that are containing some configuration data. Every single variable is a global variable. The values can also be changed manually by a keypad on the device. Is a sd_ble_gatts_value_set() call after every manual change, of any value, the prefered way of telling the BLE Stack, that there is a new value? Or is there any other efficient way?

Thanks

Regards, BTprogrammer

Parents Reply
  • Hello Anders, thanks for you answer, yes thats clear, I only want that the new value is available for the connected peer if a read is done. I notification isn`t needed in these cases. But I have to "manually" update the new values to the softdevice right? My question was just if there is maybe another, more efficient way to update these values. For example the softdevice look automatically for changes or something like this. Regards, BTprogrammer

Children
No Data
Related