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.

想用CC2541做peripheral and observer,同时实现从机和观察者的功能,应该怎么做



void GAPRole_Init( uint8 task_id ) 函数中应该如何设定 gapRole_profileRole,宏定义只定义了以下四种啊:

#define GAP_PROFILE_BROADCASTER 0x01 
#define GAP_PROFILE_OBSERVER 0x02 
#define GAP_PROFILE_PERIPHERAL 0x04 
#define GAP_PROFILE_CENTRAL 0x08