Error[e46]: Undefined external "GAP_EstablishLinkReq::?relay" referred in central ( G:\ble\190128\BLE-CC254x-1.4.2.2\Projects\ble\SimpleBLEPeripheral\CC2541DB\CC2541\Obj\central.r51 )
这个函数再gap.h中已经有定义了;
extern bStatus_t GAP_EstablishLinkReq( gapEstLinkReq_t *pParams );
Alvin Chen:
看上去是不是没有包含头文件,如果你只想建立连接建议使用:peerAddr = simpleBLEDevList[simpleBLEScanIdx].addr;addrType = simpleBLEDevList[simpleBLEScanIdx].addrType;simpleBLEState = BLE_STATE_CONNECTING;GAPCentralRole_EstablishLink( DEFAULT_LINK_HIGH_DUTY_CYCLE,DEFAULT_LINK_WHITE_LIST,addrType, peerAddr );
ZANGk:
回复 Alvin Chen:
头文件肯定已经包含了;现在是peripheral中移植central工程发现出现的问题,但是头文件肯定是包含了;不清楚怎么回事????
ZANGk:
回复 Alvin Chen:
正解。谢谢;