|
typedef void(* | pfnPairStateCB_t) (uint16_t connectionHandle, uint8_t state, uint8_t status) |
|
typedef void(* | pfnPasscodeCB_t) (uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison) |
|
These are functions whose pointers are passed from the application to the GAPBondMgr so that the GAPBondMgr can send events to the application
§ pfnPairStateCB_t
typedef void(* pfnPairStateCB_t) (uint16_t connectionHandle, uint8_t state, uint8_t status) |
Pairing State Callback Function
This callback returns the current pairing state to the application whenever the state changes and the current status of the pairing or bonding process associated with the current state.
- Parameters
-
§ pfnPasscodeCB_t
typedef void(* pfnPasscodeCB_t) (uint8_t *deviceAddr, uint16_t connectionHandle, uint8_t uiInputs, uint8_t uiOutputs, uint32_t numComparison) |
Passcode and Numeric Comparison Callback Function
This callback returns to the application the peer device information when a passcode is requested during the paring process or when numeric comparison is used
- Parameters
-
deviceAddr | Pointer to 6-byte device address which the current pairing process relates to |
connectionHandle | Connection handle of the current pairing process |
uiInputs | if TRUE, the local device should accept a passcode input. |
uiOutputs | if TRUE, the local device should display the passcode. |
numComparison | If this is a nonzero value, then it is the code that should be displayed for numeric comparison pairing. If this is zero, then passkey entry pairing is occurring. |