Class BluetoothMeshProxy
java.lang.Object
com.welie.blessed.BluetoothCentralManagerCallback
org.openremote.agent.protocol.bluetooth.mesh.BluetoothMeshProxy
public class BluetoothMeshProxy
extends com.welie.blessed.BluetoothCentralManagerCallback
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBluetoothMeshProxy(MainThreadManager bluetoothCommandSerializer, ScheduledExecutorService executorService, com.welie.blessed.BluetoothCentralManager central, com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect(Consumer<org.openremote.model.asset.agent.ConnectionStatus> statusConsumer, BluetoothMeshProxyConnectCallback callback) voidcom.welie.blessed.BluetoothPeripheralintgetRssi()com.welie.blessed.ScanResultbooleanvoidonConnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral) voidonConnectionFailed(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) voidonDisconnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) voidonDiscoveredPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) voidonScanFailed(int errorCode) voidsendData(int mtuSize, byte[] data, BluetoothMeshProxySendDataCallback callback) voidMethods inherited from class com.welie.blessed.BluetoothCentralManagerCallback
onPinRequest, onScanStarted, onScanStopped
-
Field Details
-
LOG
-
MESH_PROXY_UUID
Mesh provisioning service UUID -
MESH_PROXY_DATA_IN
Mesh provisioning data in characteristic UUID -
MESH_PROXY_DATA_OUT
Mesh provisioning data out characteristic UUID
-
-
Constructor Details
-
BluetoothMeshProxy
public BluetoothMeshProxy(MainThreadManager bluetoothCommandSerializer, ScheduledExecutorService executorService, com.welie.blessed.BluetoothCentralManager central, com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult)
-
-
Method Details
-
onConnectedPeripheral
public void onConnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral) - Overrides:
onConnectedPeripheralin classcom.welie.blessed.BluetoothCentralManagerCallback
-
onConnectionFailed
public void onConnectionFailed(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) - Overrides:
onConnectionFailedin classcom.welie.blessed.BluetoothCentralManagerCallback
-
onDisconnectedPeripheral
public void onDisconnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) - Overrides:
onDisconnectedPeripheralin classcom.welie.blessed.BluetoothCentralManagerCallback
-
onDiscoveredPeripheral
public void onDiscoveredPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) - Overrides:
onDiscoveredPeripheralin classcom.welie.blessed.BluetoothCentralManagerCallback
-
onScanFailed
public void onScanFailed(int errorCode) - Overrides:
onScanFailedin classcom.welie.blessed.BluetoothCentralManagerCallback
-
connect
public void connect(Consumer<org.openremote.model.asset.agent.ConnectionStatus> statusConsumer, BluetoothMeshProxyConnectCallback callback) -
disconnect
public void disconnect() -
sendData
-
setRxDataCallback
-
getPeripheral
public com.welie.blessed.BluetoothPeripheral getPeripheral() -
getScanResult
public com.welie.blessed.ScanResult getScanResult() -
getRssi
public int getRssi() -
isConnected
public boolean isConnected()
-