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.

Combining Two profiles into one in cc2541

Hi,

I would like combine Keyfobdemo profile and TimeApp profile for my Application. Can anybody on the forum tell me how to acheive this?

Kind Regards

Don David

  • This is doable but somewhat complex. The TimeApp profiles operate as GATT clients, while the profiles in Keyfobdemo all operate as GATT servers. You will need to integrate the code related to service discovery, characteristic discovery, and handling of received notifications in the TimeApp project into the Keyfobdemo project.

    The SW developer's guide is a good starting point in that it explain how OSAL tasks work. Hopefully that will be able to get you started.

  • Hi Willis,

    I added all the files of timeapp like clock,configuration,discovery and indication into the Keyfob demo project.Then I merged the timeapp.c file with keyfobdemo.c and timeapp.h with keyfobdemo.h. I changed the timeAPPTaskID into KeyfobTaskid in all the files.Is this the way to Proceed

    Thanks

    Don