我想实现手机跟蓝牙之间的双向连接,应该怎么改程序才能使用?
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.
你好,WBJ,双向连接我指的是既可以通过蓝牙模块连接手机,又可以通过手机将连接连接蓝牙模块。后者是可以实现的,前者目前还建立不了连接,
case GAP_DEVICE_INFO_EVENT:
{
// if filtering device discovery results based on service UUID
if ( DEFAULT_DEV_DISC_BY_SVC_UUID == TRUE )
{
// if ( simpleBLEFindSvcUuid( SIMPLEPROFILE_SERV_UUID,
// pEvent->deviceInfo.pEvtData,
// pEvent->deviceInfo.dataLen ) )
// {
simpleBLEAddDeviceInfo( pEvent->deviceInfo.addr, pEvent->deviceInfo.addrType );
// }
}
}
break;
我把上面代码中过滤UUID的部分注释了还是不行