Class BluetoothMeshProxyStateMachine

java.lang.Object
org.openremote.agent.protocol.bluetooth.mesh.BluetoothMeshProxyStateMachine

public class BluetoothMeshProxyStateMachine extends Object
  • Field Details

  • Constructor Details

    • BluetoothMeshProxyStateMachine

      public BluetoothMeshProxyStateMachine(BluetoothMeshProxy proxy, com.welie.blessed.BluetoothCentralManager bluetoothCentral, ExecutorService executorService, ScheduledExecutorService scheduledExecutorService, MainThreadManager commandSerializer, com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothPeripheralCallback callback)
  • Method Details

    • setRxDataCallback

      public void setRxDataCallback(BluetoothMeshProxyRxCallback callback)
    • connect

      public void connect(Consumer<org.openremote.model.asset.agent.ConnectionStatus> statusConsumer, BluetoothMeshProxyConnectCallback callback)
    • disconnect

      public void disconnect()
    • sendData

      public void sendData(int mtuSize, byte[] data, BluetoothMeshProxySendDataCallback callback)
    • onConnectedPeripheral

      public void onConnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral)
    • onConnectionFailed

      public void onConnectionFailed(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status)
    • onDisconnectedPeripheral

      public void onDisconnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status)
    • onServicesDiscovered

      public void onServicesDiscovered(com.welie.blessed.BluetoothPeripheral peripheral, List<com.welie.blessed.BluetoothGattService> services)
    • onNotificationStateUpdate

      public void onNotificationStateUpdate(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothGattCharacteristic characteristic, com.welie.blessed.BluetoothCommandStatus status)
    • onCharacteristicUpdate

      public void onCharacteristicUpdate(com.welie.blessed.BluetoothPeripheral peripheral, byte[] value, com.welie.blessed.BluetoothGattCharacteristic characteristic, com.welie.blessed.BluetoothCommandStatus status)
    • onCharacteristicWrite

      public void onCharacteristicWrite(com.welie.blessed.BluetoothPeripheral peripheral, byte[] value, com.welie.blessed.BluetoothGattCharacteristic characteristic, com.welie.blessed.BluetoothCommandStatus status)
    • onDiscoveredPeripheral

      public void onDiscoveredPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult)
    • isConnected

      public boolean isConnected()
    • getPeripheral

      public com.welie.blessed.BluetoothPeripheral getPeripheral()