NimBLE-Arduino 2.1.2
|
Callbacks associated with a BLE client. More...
#include <NimBLEClient.h>
Public Member Functions | |
virtual void | onConnect (NimBLEClient *pClient) |
Called after client connects. | |
virtual void | onConnectFail (NimBLEClient *pClient, int reason) |
Called when a connection attempt fails. | |
virtual void | onDisconnect (NimBLEClient *pClient, int reason) |
Called when disconnected from the server. | |
virtual bool | onConnParamsUpdateRequest (NimBLEClient *pClient, const ble_gap_upd_params *params) |
Called when server requests to update the connection parameters. | |
virtual void | onPassKeyEntry (NimBLEConnInfo &connInfo) |
Called when server requests a passkey for pairing. | |
virtual void | onAuthenticationComplete (NimBLEConnInfo &connInfo) |
Called when the pairing procedure is complete. | |
virtual void | onConfirmPasskey (NimBLEConnInfo &connInfo, uint32_t pin) |
Called when using numeric comparision for pairing. | |
virtual void | onIdentity (NimBLEConnInfo &connInfo) |
Called when the peer identity address is resolved. | |
virtual void | onMTUChange (NimBLEClient *pClient, uint16_t MTU) |
Called when the connection MTU changes. | |
virtual void | onPhyUpdate (NimBLEClient *pClient, uint8_t txPhy, uint8_t rxPhy) |
Called when the PHY update procedure is complete. | |
Callbacks associated with a BLE client.
|
virtual |
Called when the pairing procedure is complete.
[in] | connInfo | A reference to a NimBLEConnInfo instance containing the peer info. This can be used to check the status of the connection encryption/pairing. |
|
virtual |
Called when using numeric comparision for pairing.
[in] | connInfo | A reference to a NimBLEConnInfo instance containing the peer info. |
[in] | pin | The pin to compare with the server. |
|
virtual |
Called after client connects.
[in] | pClient | A pointer to the connecting client object. |
|
virtual |
Called when a connection attempt fails.
[in] | pClient | A pointer to the connecting client object. |
[in] | reason | Contains the reason code for the connection failure. |
|
virtual |
Called when server requests to update the connection parameters.
[in] | pClient | A pointer to the calling client object. |
[in] | params | A pointer to the struct containing the connection parameters requested. |
|
virtual |
Called when disconnected from the server.
[in] | pClient | A pointer to the calling client object. |
[in] | reason | Contains the reason code for the disconnection. |
|
virtual |
Called when the peer identity address is resolved.
[in] | connInfo | A reference to a NimBLEConnInfo instance with information |
|
virtual |
Called when the connection MTU changes.
[in] | pClient | A pointer to the client that the MTU change is associated with. |
[in] | MTU | The new MTU value. about the peer connection parameters. |
|
virtual |
Called when server requests a passkey for pairing.
[in] | connInfo | A reference to a NimBLEConnInfo instance containing the peer info. |
|
virtual |
Called when the PHY update procedure is complete.
[in] | pClient | A pointer to the client whose PHY was updated. about the peer connection parameters. |
[in] | txPhy | The transmit PHY. |
[in] | rxPhy | The receive PHY. Possible values:
|