API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

IBTSECURITYHANDLER_PINKEYREPLY()

Brew Release
Brew MP 1.0.2
See Also
IBTSecurityHandler_PassKeyReply
Description
This API sends the pin key to the Bluetooth driver during the pairing procedure. When pairing with devices with Bluetooth versions prior to 2.1, this API should be used to send the pin key to the Bluetooth driver, in response to AEEBTSEC_HNDLR_EV_PIN_KEY_REQ.

Params
_me
[in]:
the object
pBDAddr
[in]:
BD Address of the remote device
pPassKey
[in]:
address of buffer containing pinkey.
pPassKeyLen
[in]:
length of the pinkey

Return
AEE_SUCCESS
[]:
pinkey is successfully sent to Bluetooth driver
AEE_EBADPARAM
[]:
Bad parameter
AEE_EBADSTATE
[]:
Driver error. Another appropriate error code if operation was not successful
Interface
Prototype
  •    AEEResult IBTSecurityHandler_PinkeyReply (IBTSecurityHndlr* _me, 
                                                 BDAddress *pBDAddr,
                                                 const uint8* pPassKey,
                                                 int pPassKeyLen);
                                   
    
Side Effect
  • None
Comments
None