TI中文支持网
TI专业的中文技术问题搜集分享网站

请教一下,CC2640R2F ,现在准备在simpleBLEperipheral例程里面自定义广播内容,GAP_UpdateAdvertisingData(simpleBLEPeripheral_TaskID, TRUE, sizeof(advertData), advertData ); 中simpleBLEPeripheral_TaskID是怎么定义的呀?谢谢

GAP_UpdateAdvertisingData(simpleBLEPeripheral_TaskID, TRUE,sizeof(advertData), advertData );

simpleBLEPeripheral_TaskID不知道该怎么定义,有可以借鉴的资料吗?谢谢

Kevin Qiu1:

参考peripheral.c中的

// Update the advertising data ret = GAP_UpdateAdvertisingData(selfEntity, TRUE, gapRole_AdvertDataLen, gapRole_AdvertData);

 /*** @briefSetup or change advertising and scan response data.** @par Corresponding Events:* @ref GAP_ADV_DATA_UPDATE_DONE_EVENT of type @ref gapAdvDataUpdateEvent_t** @paramtaskID - task to receive event* @paramadType - TRUE - advertisement data, FALSE- scan response data* @paramdataLen - Octet length of advertData* @parampAdvertData - advertising or scan response data** @return@ref SUCCESS : advertising data sent to stack* @return@ref bleIncorrectMode : invalid profile role*/extern bStatus_t GAP_UpdateAdvertisingData( uint8 taskID, uint8 adType,uint8 dataLen, uint8 *pAdvertData );

赞(0)
未经允许不得转载:TI中文支持网 » 请教一下,CC2640R2F ,现在准备在simpleBLEperipheral例程里面自定义广播内容,GAP_UpdateAdvertisingData(simpleBLEPeripheral_TaskID, TRUE, sizeof(advertData), advertData ); 中simpleBLEPeripheral_TaskID是怎么定义的呀?谢谢
分享到: 更多 (0)