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

Callbacks that can be associated with a BLE descriptors to inform of events. More...

#include <BLEDescriptor.hpp>

Public Member Functions

virtual void onRead (BLEDescriptor *pDescriptor)
 Callback function to support a read request. More...
 
virtual void onWrite (BLEDescriptor *pDescriptor)
 Callback function to support a write request. More...
 

Detailed Description

Callbacks that can be associated with a BLE descriptors to inform of events.

When a server application creates a BLE descriptor, we may wish to be informed when there is either a read or write request to the descriptors value. An application can register a sub-classed instance of this class and will be notified when such an event happens.

Member Function Documentation

◆ onRead()

void BLEDescriptorCallbacks::onRead ( BLEDescriptor pDescriptor)
virtual

Callback function to support a read request.

Parameters
[in]pDescriptorThe descriptor that is the source of the event.
173  {
174  _debug_print("BLEDescriptorCallbacks", ">> onRead: default");
175  _debug_print("BLEDescriptorCallbacks", "<< onRead");
176 } // onRead

◆ onWrite()

void BLEDescriptorCallbacks::onWrite ( BLEDescriptor pDescriptor)
virtual

Callback function to support a write request.

Parameters
[in]pDescriptorThe descriptor that is the source of the event.
183  {
184  _debug_print("BLEDescriptorCallbacks", ">> onWrite: default");
185  _debug_print("BLEDescriptorCallbacks", "<< onWrite");
186 } // onWrite

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