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.

CC2640的开关FEATURE_OAD开启之后,profile用不了了?求解惑



simpleBLEPeripheral.c

比如下面部分代码,如果打开OAD功能开关,就用不了profile了吗?那还怎样和apk通信呢?

#ifndef FEATURE_OAD  

// Setup the SimpleProfile Characteristic Values  

{     uint8_t charValue1 = 1;     uint8_t charValue2 = 2;     uint8_t charValue3 = 3;     uint8_t charValue4 = 4;    

uint8_t charValue5[SIMPLEPROFILE_CHAR5_LEN] = { 1, 2, 3, 4, 5 };  

   uint8_t charValue6[SIMPLEPROFILE_CHAR6_LEN] = { 'a','b', 'c', 4, 5 ,6,7,8,9,'d'};    

 SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR1, sizeof(uint8_t),                                &charValue1);     SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR2, sizeof(uint8_t),                                &charValue2);     SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR3, sizeof(uint8_t),                                &charValue3);     SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR4, sizeof(uint8_t),                                &charValue4);     SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR5, SIMPLEPROFILE_CHAR5_LEN,                                charValue5);     SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR6, SIMPLEPROFILE_CHAR6_LEN,                                charValue6);  

}   

// Register callback with SimpleGATTprofile  

SimpleProfile_RegisterAppCBs(&SimpleBLEPeripheral_simpleProfileCBs);

#endif //!FEATURE_OAD