esp-nimble-cpp 2.0.1
|
Callbacks associated with the operation of a BLE server. More...
#include <NimBLEServer.h>
Public Member Functions | |
virtual void | onConnect (NimBLEServer *pServer, NimBLEConnInfo &connInfo) |
Handle a client connection. This is called when a client connects. | |
virtual void | onDisconnect (NimBLEServer *pServer, NimBLEConnInfo &connInfo, int reason) |
Handle a client disconnection. This is called when a client disconnects. | |
virtual void | onMTUChange (uint16_t MTU, NimBLEConnInfo &connInfo) |
Called when the connection MTU changes. | |
virtual uint32_t | onPassKeyDisplay () |
Called when a client requests a passkey for pairing (display). | |
virtual void | onConfirmPassKey (NimBLEConnInfo &connInfo, uint32_t pin) |
Called when using numeric comparision for pairing. | |
virtual void | onAuthenticationComplete (NimBLEConnInfo &connInfo) |
Called when the pairing procedure is complete. | |
virtual void | onIdentity (NimBLEConnInfo &connInfo) |
Called when the peer identity address is resolved. | |
virtual void | onConnParamsUpdate (NimBLEConnInfo &connInfo) |
Called when connection parameters are updated following a request to update via NimBLEServer::updateConnParams. | |
virtual void | onPhyUpdate (NimBLEConnInfo &connInfo, uint8_t txPhy, uint8_t rxPhy) |
Called when the PHY update procedure is complete. | |
Callbacks associated with the operation of a BLE server.
|
virtual |
Called when the pairing procedure is complete.
[in] | connInfo | A reference to a NimBLEConnInfo instance with information about the peer connection parameters. |
|
virtual |
Called when using numeric comparision for pairing.
[in] | connInfo | A reference to a NimBLEConnInfo instance with information Should be passed back to NimBLEDevice::injectConfirmPasskey |
[in] | pin | The pin to compare with the client. |
|
virtual |
Handle a client connection. This is called when a client connects.
[in] | pServer | A pointer to the BLE server that received the client connection. |
[in] | connInfo | A reference to a NimBLEConnInfo instance with information. about the peer connection parameters. |
Default callback handlers
|
virtual |
Called when connection parameters are updated following a request to update via NimBLEServer::updateConnParams.
[in] | connInfo | A reference to a NimBLEConnInfo instance containing the updated connection parameters. |
|
virtual |
Handle a client disconnection. This is called when a client disconnects.
[in] | pServer | A pointer to the BLE server that received the client disconnection. |
[in] | connInfo | A reference to a NimBLEConnInfo instance with information about the peer connection parameters. |
[in] | reason | 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] | MTU | The new MTU value. |
[in] | connInfo | A reference to a NimBLEConnInfo instance with information about the peer connection parameters. |
|
virtual |
Called when a client requests a passkey for pairing (display).
|
virtual |
Called when the PHY update procedure is complete.
[in] | connInfo | A reference to a NimBLEConnInfo instance with information about the peer connection parameters. |
[in] | txPhy | The transmit PHY. |
[in] | rxPhy | The receive PHY. Possible values:
|