Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52 SDK central set-up sdk-config.h

I am busy with my first BLE project , programming  a custom service for both pheripheral and central role. I have already finished the pheripheral service, using a custom service tutorial and was able to test this successfully.

Now I run into two issues:

Now I have started with the Central role, and I tried to use the HRM_client  example to see how to handle notifications. I used the BLE template as a base, but got several errors like NRF_BUFFER_ ??  NOT DEFINED. I checked the includes and these are complete, I checked the sdk-config.h and discovered that this was different from the sdk-config.h in the HRM_Client program. Some parts are not there in the BLE template.

I am a little bit surprised. I expected that the sdk-config.h would be the same, and just some options were turned on/off depending on the role, but it looks there are no central role references in the config file of the BLE template.

I checked the softdevice version, but this should be able to run both central and pheripheral roles (S132)

Is there a separate template / sdk-config.h  for the central role? And where can I find this?

The other issue concerns program structure. I have defined a service with more than one notification. What would be the best way to treat more than one notification in the client program? Where in the chains of event handlers would it be the best moment to split these up?

Parents Reply Children
No Data
Related