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.

配对时候passcode



static void hidDevPasscodeCB( uint8 *deviceAddr, uint16 connectionHandle,
uint8 uiInputs, uint8 uiOutputs )
{
if ( pHidDevCB && pHidDevCB->passcodeCB )
{

// execute HID app passcode callback
(*pHidDevCB->passcodeCB)( deviceAddr, connectionHandle, uiInputs, uiOutputs );
}
else
{
// Send passcode response
GAPBondMgr_PasscodeRsp( connectionHandle, SUCCESS, 0 );
}
}

如上函数。第一个if表示什么意思。else 为什么返回的秘钥是0   为什么我们不判断uiInput   或者uiOutputs