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.

SimpleBLECentral例程选择性连接问题



    我用SimpleBLECentral例程选择性连接从机,通过串口发送的MAC地址匹配,如果匹配上则建立连接。上电暨开启扫描,

     在simpleBLECentralEventCB( gapCentralRoleEvent_t *pEvent )函数中的GAP_DEVICE_INFO_EVENT事件里进行匹配地址,如果匹配上则加入设备列表。这种思路能实现我的预想功能吗?

if( osal_memcmp(SlaveAddr,pEvent->deviceInfo.addr,6)==TRUE)

{
simpleBLEAddDeviceInfo( pEvent->deviceInfo.addr, pEvent->deviceInfo.addrType );
}

请指教!