ZHCACZ5 August 2023 CC2564C
LEPassKeyResponse 命令負(fù)責(zé)使用由輸入?yún)?shù)指定的通行密鑰值發(fā)出 GAP 身份驗證響應(yīng)。此命令在成功執(zhí)行時返回零,而在出現(xiàn)任何錯誤時返回負(fù)值。
PassKeyResponse 命令需要一個參數(shù),即用于對連接進行身份驗證的通行密鑰。這是一個字符串值,最長可達 6 位數(shù)字(值介于 0 和 999999 之間)。
該值表示最長的 6 位通行密鑰值。
GAP_LE_Authentication_Response(BluetoothStackID, CurrentRemoteBD_ADDR, &GAP_LE_Authentication_Response_Information)
int BTPSAPI GAP_LE_Authentication_Response(unsigned int BluetoothStackID, BD_ADDR_t BD_ADDR, GAP_LE_Authentication_Response_Information_t*GAP_LE_Authentication_Information)
提供此函數(shù)是為了能夠讓本地設(shè)備響應(yīng) GAP LE 身份驗證事件。此函數(shù)用于為指定的藍牙設(shè)備指定身份驗證信息。該函數(shù)將以下內(nèi)容作為輸入:已請求身份驗證操作的藍牙設(shè)備的藍牙協(xié)議棧 ID 以及身份驗證響應(yīng)信息(由調(diào)用方指定)。