Class SendSingleDataSegmentCommand
java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.SendSingleDataSegmentCommand
- All Implemented Interfaces:
SendDataCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BluetoothMeshProxySendDataCallback
protected final ExecutorService
static final Logger
-
Constructor Summary
ConstructorsConstructorDescriptionSendSingleDataSegmentCommand
(BluetoothMeshProxy proxy, MainThreadManager commandSerializer, ExecutorService executorService, com.welie.blessed.BluetoothGattCharacteristic characteristic, byte[] data, BluetoothMeshProxySendDataCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionvoid
onCharacteristicWrite
(com.welie.blessed.BluetoothPeripheral peripheral, byte[] value, com.welie.blessed.BluetoothGattCharacteristic characteristic, com.welie.blessed.BluetoothCommandStatus status) boolean
sendData()
-
Field Details
-
LOG
-
callback
-
executorService
-
-
Constructor Details
-
SendSingleDataSegmentCommand
public SendSingleDataSegmentCommand(BluetoothMeshProxy proxy, MainThreadManager commandSerializer, ExecutorService executorService, com.welie.blessed.BluetoothGattCharacteristic characteristic, byte[] data, BluetoothMeshProxySendDataCallback callback)
-
-
Method Details
-
sendData
public boolean sendData()- Specified by:
sendData
in interfaceSendDataCommand
-
onCharacteristicWrite
public void onCharacteristicWrite(com.welie.blessed.BluetoothPeripheral peripheral, byte[] value, com.welie.blessed.BluetoothGattCharacteristic characteristic, com.welie.blessed.BluetoothCommandStatus status) - Specified by:
onCharacteristicWrite
in interfaceSendDataCommand
-