Direct-BT v3.3.0-1-gc2d430c
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 (int i_, int j_)
 
 MyGATTEventListener (int i_, int j_)
 
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...
 
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...
 
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 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...
 
- Public Member Functions inherited from direct_bt::BTGattCharListener
 ~BTGattCharListener () noexcept override=default
 
std::string get_java_class () const noexcept override
 
virtual void indicationReceived (BTGattCharRef charDecl, const jau::TROOctets &charValue, const uint64_t timestamp, const bool confirmationSent)=0
 Called from native BLE stack, initiated by a received indication associated with the given BTGattChar. More...
 
virtual void notificationReceived (BTGattCharRef charDecl, const jau::TROOctets &charValue, const uint64_t timestamp)=0
 Called from native BLE stack, initiated by a received notification associated with the given BTGattChar. More...
 
bool operator!= (const BTGattCharListener &rhs) const noexcept
 
virtual bool operator== (const BTGattCharListener &rhs) const noexcept
 Default comparison operator, merely testing for same memory reference. More...
 
std::string toString () const noexcept override
 Return a simple description about this instance. More...
 
virtual const char * type_name () const noexcept
 Returns a unique string denominating the type of this instance. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from direct_bt::BTGattCharListener
static std::string java_class () noexcept
 

Detailed Description

Examples
dbt_scanner10.cpp.

Definition at line 330 of file dbt_labpadclient01.cpp.

Constructor & Destructor Documentation

◆ MyGATTEventListener() [1/2]

MyGATTEventListener::MyGATTEventListener ( int  i_,
int  j_ 
)
inline
Examples
dbt_scanner10.cpp.

Definition at line 336 of file dbt_labpadclient01.cpp.

◆ MyGATTEventListener() [2/2]

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

Definition at line 318 of file dbt_scanner10.cpp.

Member Function Documentation

◆ 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
timestampmonotonic timestamp at reception, see jau::getCurrentMilliseconds()

Implements direct_bt::BTGattCharListener.

Examples
dbt_scanner10.cpp.

Definition at line 338 of file dbt_labpadclient01.cpp.

◆ 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
timestampmonotonic timestamp at reception, see jau::getCurrentMilliseconds()
confirmationSentif true, the native stack has sent the confirmation, otherwise user is required to do so.

Implements direct_bt::BTGattCharListener.

Examples
dbt_scanner10.cpp.

Definition at line 355 of file dbt_labpadclient01.cpp.

◆ 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
timestampmonotonic timestamp at reception, see jau::getCurrentMilliseconds()

Implements direct_bt::BTGattCharListener.

Definition at line 320 of file dbt_scanner10.cpp.

◆ 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
timestampmonotonic timestamp at reception, see jau::getCurrentMilliseconds()
confirmationSentif true, the native stack has sent the confirmation, otherwise user is required to do so.

Implements direct_bt::BTGattCharListener.

Definition at line 337 of file dbt_scanner10.cpp.


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