I have a nrf52832 running as a BTLE peripheral running up a couple of services including one custom with a characteristic i wish to be modified by the peer.
Data is being served up to my phone much as expected but i am having a hard time getting my head round the writing of data back to the NRF52.
I setup the characteristic with write permissions and sure enough i could modify the value from the phone and the SD would return the new value upon read.
From what i understand, as attr_md.vloc was set to BLE_GATTS_VLOC_STACK, the value change remains in the SD. I set attr_md.vloc to BLE_GATTS_VLOC_USER but still dont really know the proper way to read the actual value.
is there an example or tutorial available similar to this one devzone.nordicsemi.com/.../ which demonstrates reading peer modified data in user code?
apologies if this has been answered, i have looked but im still not up on the correct terminology for this stuff so didn't turn up too much.
Thanks for your time! angus
p.s. should add, im currently on sdk11 but am likely to port to 13 if that makes any difference...