GAP_UpdateAdvertisingData(simpleBLEPeripheral_TaskID, TRUE,sizeof(advertData), advertData );
simpleBLEPeripheral_TaskID不知道该怎么定义,有可以借鉴的资料吗?谢谢
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.
GAP_UpdateAdvertisingData(simpleBLEPeripheral_TaskID, TRUE,sizeof(advertData), advertData );
simpleBLEPeripheral_TaskID不知道该怎么定义,有可以借鉴的资料吗?谢谢
参考peripheral.c中的
// Update the advertising data
ret = GAP_UpdateAdvertisingData(selfEntity,
TRUE, gapRole_AdvertDataLen, gapRole_AdvertData);
/** * @brief Setup or change advertising and scan response data. * * @par Corresponding Events: * @ref GAP_ADV_DATA_UPDATE_DONE_EVENT of type @ref gapAdvDataUpdateEvent_t * * @param taskID - task to receive event * @param adType - TRUE - advertisement data, FALSE - scan response data * @param dataLen - Octet length of advertData * @param pAdvertData - 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 );