esp-nimble-cpp
1.4.1
|
Callbacks associated with the operation of a BLE server. More...
Public Member Functions | |
virtual void | onConnect (NimBLEServer *pServer) |
Handle a client connection. This is called when a client connects. More... | |
virtual void | onConnect (NimBLEServer *pServer, ble_gap_conn_desc *desc) |
Handle a client connection. This is called when a client connects. More... | |
virtual void | onDisconnect (NimBLEServer *pServer) |
Handle a client disconnection. This is called when a client disconnects. More... | |
virtual void | onDisconnect (NimBLEServer *pServer, ble_gap_conn_desc *desc) |
Handle a client disconnection. This is called when a client discconnects. More... | |
virtual void | onMTUChange (uint16_t MTU, ble_gap_conn_desc *desc) |
Called when the connection MTU changes. More... | |
virtual uint32_t | onPassKeyRequest () |
Called when a client requests a passkey for pairing. More... | |
virtual void | onAuthenticationComplete (ble_gap_conn_desc *desc) |
Called when the pairing procedure is complete. More... | |
virtual bool | onConfirmPIN (uint32_t pin) |
Called when using numeric comparision for pairing. More... | |
Callbacks associated with the operation of a BLE server.
|
virtual |
Called when the pairing procedure is complete.
[in] | desc | A pointer to the struct containing the connection information. This can be used to check the status of the connection encryption/pairing. |
|
virtual |
Called when using numeric comparision for pairing.
[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. |
Default callback handlers
|
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] | desc | A pointer to the connection description structure containig information about the connection parameters. |
|
virtual |
Handle a client disconnection. This is called when a client disconnects.
[in] | pServer | A reference to the BLE server that received the existing client disconnection. |
|
virtual |
Handle a client disconnection. This is called when a client discconnects.
[in] | pServer | A pointer to the BLE server that received the client disconnection. |
[in] | desc | A pointer to the connection description structure containing information about the connection. |
|
virtual |
Called when the connection MTU changes.
[in] | MTU | The new MTU value. |
[in] | desc | A pointer to the connection description structure containing information about the connection. |
|
virtual |
Called when a client requests a passkey for pairing.