SDK  23.9.2
For IoT System Software Development
Public Member Functions | List of all members
BLEServerCallbacks Class Reference

Callbacks associated with the operation of a BLE server. More...

#include <BLEServer.hpp>

Public Member Functions

virtual void onConnect (BLEServer *pServer)
 Handle a new client connection. More...
 
virtual void onDisconnect (BLEServer *pServer)
 Handle an existing client disconnection. More...
 

Detailed Description

Callbacks associated with the operation of a BLE server.

Member Function Documentation

◆ onConnect()

void BLEServerCallbacks::onConnect ( BLEServer pServer)
virtual

Handle a new client connection.

When a new client connects, we are invoked.

Parameters
[in]pServerA reference to the BLE server that received the client connection.
161  {
162  _debug_print("BLEServerCallbacks", ">> onConnect(): Default");
163  _debug_print_s("BLEServerCallbacks", "Device", BLEDevice::toString().c_str());
164  _debug_print("BLEServerCallbacks", "<< onConnect()");
165 } // onConnect

◆ onDisconnect()

void BLEServerCallbacks::onDisconnect ( BLEServer pServer)
virtual

Handle an existing client disconnection.

When an existing client disconnects, we are invoked.

Parameters
[in]pServerA reference to the BLE server that received the existing client disconnection.
175  {
176  _debug_print("BLEServerCallbacks", ">> onDisconnect(): Default");
177  _debug_print_s("BLEServerCallbacks", "Device", BLEDevice::toString().c_str());
178  _debug_print("BLEServerCallbacks", "<< onDisconnect()");
179 } // onDisconnect

The documentation for this class was generated from the following files: