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