Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Public Member Functions | |
JNIGattCharListener (JNIEnv *env, BTDevice *device, jobject listener, BTGattChar *associatedCharacteristicRef_) | |
bool | match (const BTGattChar &characteristic) noexcept override |
Custom filter for all event methods, which will not be called if this method returns false. More... | |
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... | |
Public Member Functions inherited from direct_bt::BTGattCharListener | |
virtual | ~BTGattCharListener () noexcept |
virtual bool | operator== (const BTGattCharListener &rhs) const noexcept |
Default comparison operator, merely testing for same memory reference. More... | |
bool | operator!= (const BTGattCharListener &rhs) const noexcept |
Definition at line 44 of file DBTDevice.cxx.
|
inline |
|
inlineoverridevirtual |
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 | the indication monotonic timestamp, see BluetoothUtils#getCurrentMilliseconds() |
confirmationSent | if true, the native stack has sent the confirmation, otherwise user is required to do so. |
Implements direct_bt::BTGattCharListener.
Definition at line 123 of file DBTDevice.cxx.
|
inlineoverridevirtualnoexcept |
Custom filter for all event methods, which will not be called if this method returns false.
User may override this method to test whether the methods shall be called for the given BTGattChar.
Defaults to true;
Reimplemented from direct_bt::BTGattCharListener.
Definition at line 96 of file DBTDevice.cxx.
|
inlineoverridevirtual |
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 | the indication monotonic timestamp, see getCurrentMilliseconds() |
Implements direct_bt::BTGattCharListener.
Definition at line 103 of file DBTDevice.cxx.