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

peripheral/central device gets device information from peripheral and pass through to central

I have a custom nRF52832 device acting as a peripheral and a central. Acting as a central device it reads the device information from a nRF52832 peripheral device. Now I want it to act as a peripheral device and pass that same device information on to another central device (iPad). I have a device information service in the peripheral/central device for this purpose and it gets initialized at startup. Acting as a central, it reads the device information from its' connected peripheral device, but how can I rewrite the device information service characteristic values so that information is updated and ready for another characteristic read from the iPad? I don't see a way to get the handle back when the device information characteristics are added in ble_dis.c so that I can use that to call sd_ble_gatts_value_set to write new values in the device information after receiving those values from the peripheral.

Parents Reply Children
No Data
Related