Direct-BT v3.2.3-1-g688f983
Direct-BT - Direct Bluetooth Programming.
|
BTGattChar
event listener for notification and indication events.
More...
#include <BTGattChar.hpp>
Public Member Functions | |
~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... | |
Public Member Functions inherited from jau::jni::JavaUplink | |
JavaUplink () noexcept=default | |
JavaUplink (const JavaUplink &o) noexcept=default | |
JavaUplink (JavaUplink &&o) noexcept=default | |
virtual | ~JavaUplink () noexcept |
virtual void | checkValidInstance () const |
Throws an IllegalStateException if instance is not valid. More... | |
virtual std::string | get_java_class () const noexcept=0 |
const JavaAnonRef & | getJavaObject () noexcept |
std::string | javaObjectToString () const noexcept |
JavaUplink & | operator= (const JavaUplink &o) noexcept=default |
JavaUplink & | operator= (JavaUplink &&o) noexcept=default |
void | setJavaObject () noexcept |
Resets the shared JavaAnon reference, the replaced item might be deleted via JNI from dtor. More... | |
void | setJavaObject (const JavaAnonRef &objRef) noexcept |
Assigns a new shared JavaAnon reference, replaced item might be deleted via JNI from dtor. More... | |
virtual std::string | toString () const noexcept |
Static Public Member Functions | |
static std::string | java_class () noexcept |
BTGattChar
event listener for notification and indication events.
A listener instance may be attached to a BTGattChar instance via BTGattChar::addCharListener(BTGattCharListenerRef)
to listen to its events.
A listener instance may be attached to a BTGattHandler via BTGattHandler::addCharListener(BTGattCharListenerRef)
to listen to all events of the device or the matching filtered events.
The listener manager maintains a unique set of listener instances without duplicates.
Definition at line 450 of file BTGattChar.hpp.
|
overridedefaultnoexcept |
|
virtualnoexcept |
Returns a unique string denominating the type of this instance.
Simple access and provision of a typename string representation at compile time like RTTI via jau::type_name_cue.
Definition at line 52 of file BTGattChar.cpp.
|
pure virtual |
Called from native BLE stack, initiated by a received notification associated with the given BTGattChar
.
charDecl | BTGattChar related to this notification |
charValue | the notification value |
timestamp | monotonic timestamp at reception, see jau::getCurrentMilliseconds() |
Implemented in JNIGattCharListener, MyGATTEventListener, and MyGATTEventListener.
|
pure virtual |
Called from native BLE stack, initiated by a received indication associated with the given BTGattChar
.
charDecl | BTGattChar related to this indication |
charValue | the indication value |
timestamp | monotonic timestamp at reception, see jau::getCurrentMilliseconds() |
confirmationSent | if true, the native stack has sent the confirmation, otherwise user is required to do so. |
Implemented in JNIGattCharListener, MyGATTEventListener, and MyGATTEventListener.
|
inlineoverridevirtualnoexcept |
Return a simple description about this instance.
Reimplemented from jau::jni::JavaUplink.
Definition at line 485 of file BTGattChar.hpp.
|
inlineoverridevirtualnoexcept |
Implements jau::jni::JavaUplink.
Definition at line 489 of file BTGattChar.hpp.
|
inlinestaticnoexcept |
Definition at line 492 of file BTGattChar.hpp.
|
inlinevirtualnoexcept |
Default comparison operator, merely testing for same memory reference.
Specializations may override.
Definition at line 502 of file BTGattChar.hpp.
|
inlinenoexcept |
Definition at line 505 of file BTGattChar.hpp.