This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Adding peripheral role to SSP example

Part Number: CC2640R2F

I was trying to enable notifications in the multirole example but didn't get anywhere. Now I have notifications working with the SSP example as the central. I would like to add a peripheral role to the SSP example. 

Could someone walk me thru the steps needed to add a peripheral role to a simple central project (like SSP)? I understand that the multi role example is exactly that, but I would like to understand step by step what needs to be done to add a role to an existing single role project. 

Thank you!

  • Hi,

    You will have to modify your central.c/.h(under Profiles folder) to be like multi.c, also you need to make sure your simple_central.c(SPP.c) is set up to handle all the peripheral states/msg(as multi_role.c)

    On top of that, in the stack project, you need to change the build configuration to be -DHOST_CONFIG=PERIPHERAL_CFG+CENTRAL_CFG (under Tools folder in build_config.opt)

    I would still recommend you to start from multirole project and we can help you on what you want to do.