OBSERVER角色,syscfg使能 add advertisement Channel Number之后,如何在BLEAPPUTIL_ADV_REPORT事件到达后拿到这个Channel Number?
在scanMsg->pBuf->pAdvReport对象中哪个参数是Channel Number?
代码片段如下:
void Observer_ScanEventHandler(uint32 event, BLEAppUtil_msgHdr_t *pMsgData){
BLEAppUtil_ScanEventData_t *scanMsg = (BLEAppUtil_ScanEventData_t *)pMsgData;
switch (event){
case BLEAPPUTIL_ADV_REPORT:{
scanMsg->pBuf->pAdvReport.pData