Direct-BT  2.3.1
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
MyGATTEventListener Class Reference
Inheritance diagram for MyGATTEventListener:
Collaboration diagram for MyGATTEventListener:

Public Member Functions

 MyGATTEventListener ()
 
void notificationReceived (BTGattCharRef charDecl, const TROOctets &charValue, const uint64_t timestamp) override
 Called from native BLE stack, initiated by a received notification associated with the given BTGattChar. More...
 
void indicationReceived (BTGattCharRef charDecl, const TROOctets &charValue, const uint64_t timestamp, const bool confirmationSent) override
 Called from native BLE stack, initiated by a received indication associated with the given BTGattChar. More...
 
 MyGATTEventListener (int i_, int j_)
 
void notificationReceived (BTGattCharRef charDecl, const TROOctets &char_value, const uint64_t timestamp) override
 Called from native BLE stack, initiated by a received notification associated with the given BTGattChar. More...
 
void indicationReceived (BTGattCharRef charDecl, const TROOctets &char_value, const uint64_t timestamp, const bool confirmationSent) override
 Called from native BLE stack, initiated by a received indication associated with the given BTGattChar. More...
 
- Public Member Functions inherited from direct_bt::BTGattChar::Listener
virtual ~Listener () noexcept
 
virtual bool operator== (const Listener &rhs) const noexcept
 Default comparison operator, merely testing for same memory reference. More...
 
bool operator!= (const Listener &rhs) const noexcept
 

Detailed Description

Examples
dbt_scanner00.cpp, and dbt_scanner10.cpp.

Definition at line 118 of file dbt_scanner00.cpp.

Constructor & Destructor Documentation

◆ MyGATTEventListener() [1/2]

MyGATTEventListener::MyGATTEventListener ( )
inline

Definition at line 121 of file dbt_scanner00.cpp.

◆ MyGATTEventListener() [2/2]

MyGATTEventListener::MyGATTEventListener ( int  i_,
int  j_ 
)
inline

Definition at line 320 of file dbt_scanner10.cpp.

Member Function Documentation

◆ indicationReceived() [1/2]

void MyGATTEventListener::indicationReceived ( BTGattCharRef  charDecl,
const TROOctets charValue,
const uint64_t  timestamp,
const bool  confirmationSent 
)
inlineoverridevirtual

Called from native BLE stack, initiated by a received indication associated with the given BTGattChar.

Parameters
charDeclBTGattChar related to this indication
charValuethe indication value
timestampthe indication monotonic timestamp, see BluetoothUtils#getCurrentMilliseconds()
confirmationSentif true, the native stack has sent the confirmation, otherwise user is required to do so.

Implements direct_bt::BTGattChar::Listener.

Definition at line 336 of file dbt_scanner10.cpp.

Here is the call graph for this function:

◆ indicationReceived() [2/2]

void MyGATTEventListener::indicationReceived ( BTGattCharRef  charDecl,
const TROOctets charValue,
const uint64_t  timestamp,
const bool  confirmationSent 
)
inlineoverridevirtual

Called from native BLE stack, initiated by a received indication associated with the given BTGattChar.

Parameters
charDeclBTGattChar related to this indication
charValuethe indication value
timestampthe indication monotonic timestamp, see BluetoothUtils#getCurrentMilliseconds()
confirmationSentif true, the native stack has sent the confirmation, otherwise user is required to do so.

Implements direct_bt::BTGattChar::Listener.

Definition at line 134 of file dbt_scanner00.cpp.

Here is the call graph for this function:

◆ notificationReceived() [1/2]

void MyGATTEventListener::notificationReceived ( BTGattCharRef  charDecl,
const TROOctets charValue,
const uint64_t  timestamp 
)
inlineoverridevirtual

Called from native BLE stack, initiated by a received notification associated with the given BTGattChar.

Parameters
charDeclBTGattChar related to this notification
charValuethe notification value
timestampthe indication monotonic timestamp, see getCurrentMilliseconds()

Implements direct_bt::BTGattChar::Listener.

Definition at line 322 of file dbt_scanner10.cpp.

Here is the call graph for this function:

◆ notificationReceived() [2/2]

void MyGATTEventListener::notificationReceived ( BTGattCharRef  charDecl,
const TROOctets charValue,
const uint64_t  timestamp 
)
inlineoverridevirtual

Called from native BLE stack, initiated by a received notification associated with the given BTGattChar.

Parameters
charDeclBTGattChar related to this notification
charValuethe notification value
timestampthe indication monotonic timestamp, see getCurrentMilliseconds()

Implements direct_bt::BTGattChar::Listener.

Definition at line 123 of file dbt_scanner00.cpp.

Here is the call graph for this function:

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