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

Developer

API Reference

IBTDEVDB_BOND()

Brew Release
Brew MP 1.0.2
See Also
Description
This method enables application to send the PIN code to BT driver to be used for authenticating the remote device. The bBonded field of the entry for the device with the given address will be set to TRUE if bonding is successful.
Params
po
[in]:
the object
pBDAddr
[in]:
BD address of remote device
pPin
[in]:
the PIN code, in UTF-8 format
bInitiating
[in]:
TRUE to indicate local device initiates bonding process
pResult
[out]:
bonding result
pResultCb
[]:
called to deliver the result
Return
SUCCESS
[]:
pending, just wait for pResultCb to be called
EBADPARM
[]:
one or more input pointers are invalid
Interface
  • IBTDEVDB
Prototype
  •    int IBTDEVDB_Bond(IBTDevDB*         po,
                         const BDAddress*  pBDAddr,
                         const uint8*      pPin,
                         boolean           bInitiating,
                         BTResult*         pResult,
                         AEECallback*      pResultCb);
    
Side Effect
  • None
Comments
None