public class BleNotify extends BleDescriptorOp<BleNotify>
Modifier and Type | Class and Description |
---|---|
static class |
BleNotify.Builder
Builder class to build out a list (or array) of
BleNotify instances. |
Constructor and Description |
---|
BleNotify() |
BleNotify(BleNotify notify)
Constructor which creates a new
BleNotify from the one given. |
BleNotify(java.util.UUID characteristicUuid) |
BleNotify(java.util.UUID serviceUuid,
java.util.UUID characteristicUuid) |
Modifier and Type | Method and Description |
---|---|
Interval |
getForceReadTimeout()
Get the forced read timeout set in this
BleNotify . |
NotificationListener |
getNotificationListener()
Get the
NotificationListener set in this instance of BleNotify . |
boolean |
isValid()
Returns
true if the minimum values have been set for this operation |
BleNotify |
setForceReadTimeout(Interval timeout)
This allows you to set a forced read, simulating a notification.
|
BleNotify |
setNotificationListener(NotificationListener listener)
Set a
NotificationListener for this BleNotify. |
setDescriptorUUID
getCharacteristicUuid, getData, getDescriptorFilter, getDescriptorUuid, getReadWriteListener, getServiceUuid, isCharUuidValid, isNotify, isRead, isServiceUuidValid, isWrite, setCharacteristicUUID, setData, setDescriptorFilter, setReadWriteListener, setServiceUUID
public BleNotify()
public BleNotify(java.util.UUID serviceUuid, java.util.UUID characteristicUuid)
public BleNotify(java.util.UUID characteristicUuid)
public final boolean isValid()
BleOp
true
if the minimum values have been set for this operationisValid
in class BleDescriptorOp<BleNotify>
public final BleNotify setForceReadTimeout(Interval timeout)
public final Interval getForceReadTimeout()
BleNotify
.public final BleNotify setNotificationListener(NotificationListener listener)
NotificationListener
for this BleNotify. This listener will only be called when toggling
notifications/indications on/off. Use BleDevice.setListener_Notification(NotificationListener)
to listen
for incoming notifications.public final NotificationListener getNotificationListener()
NotificationListener
set in this instance of BleNotify
.