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, ExecutorService executorService, ScheduledExecutorService scheduledExecutorService, com.welie.blessed.BluetoothCentralManager central, com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect
(Consumer<org.openremote.model.asset.agent.ConnectionStatus> statusConsumer, BluetoothMeshProxyConnectCallback callback) void
com.welie.blessed.BluetoothPeripheral
int
getRssi()
com.welie.blessed.ScanResult
boolean
void
onConnectedPeripheral
(com.welie.blessed.BluetoothPeripheral peripheral) void
onConnectionFailed
(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) void
onDisconnectedPeripheral
(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) void
onDiscoveredPeripheral
(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) void
onScanFailed
(int errorCode) void
sendData
(int mtuSize, byte[] data, BluetoothMeshProxySendDataCallback callback) void
Methods 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, ExecutorService executorService, ScheduledExecutorService scheduledExecutorService, 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:
onConnectedPeripheral
in classcom.welie.blessed.BluetoothCentralManagerCallback
-
onConnectionFailed
public void onConnectionFailed(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) - Overrides:
onConnectionFailed
in classcom.welie.blessed.BluetoothCentralManagerCallback
-
onDisconnectedPeripheral
public void onDisconnectedPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.BluetoothCommandStatus status) - Overrides:
onDisconnectedPeripheral
in classcom.welie.blessed.BluetoothCentralManagerCallback
-
onDiscoveredPeripheral
public void onDiscoveredPeripheral(com.welie.blessed.BluetoothPeripheral peripheral, com.welie.blessed.ScanResult scanResult) - Overrides:
onDiscoveredPeripheral
in classcom.welie.blessed.BluetoothCentralManagerCallback
-
onScanFailed
public void onScanFailed(int errorCode) - Overrides:
onScanFailed
in 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()
-