Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Public Member Functions | List of all members
JNIGattCharListener Class Reference
Inheritance diagram for JNIGattCharListener:
Collaboration diagram for JNIGattCharListener:

Public Member Functions

 JNIGattCharListener (JNIEnv *env, jobject listener)
 
void indicationReceived (BTGattCharRef charDecl, const jau::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...
 
void notificationReceived (BTGattCharRef charDecl, const jau::TROOctets &charValue, 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

Definition at line 46 of file DBTDevice.cxx.

Constructor & Destructor Documentation

◆ JNIGattCharListener()

JNIGattCharListener::JNIGattCharListener ( JNIEnv *  env,
jobject  listener 
)
inline

Definition at line 67 of file DBTDevice.cxx.

Member Function Documentation

◆ notificationReceived()

void JNIGattCharListener::notificationReceived ( BTGattCharRef  charDecl,
const jau::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 83 of file DBTDevice.cxx.

◆ indicationReceived()

void JNIGattCharListener::indicationReceived ( BTGattCharRef  charDecl,
const jau::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 103 of file DBTDevice.cxx.


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