public class BluetoothController
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
ej.bluetooth.BluetoothConnection |
getConnection(short connHandle) |
java.lang.Short |
getConnHandle(ej.bluetooth.BluetoothConnection connection) |
static BluetoothController |
getInstance() |
ej.bluetooth.BluetoothAttribute |
getLocalAttribute(short attributeHandle) |
java.lang.Short |
getLocalAttributeHandle(ej.bluetooth.BluetoothAttribute attribute) |
ej.bluetooth.BluetoothAttribute |
getRemoteAttribute(ej.bluetooth.BluetoothConnection connection,
short attributeHandle) |
java.lang.Short |
getRemoteAttributeHandle(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothAttribute attribute) |
void |
onAdapterDisabled() |
void |
onAdapterEnabled() |
short |
onConnected(ej.bluetooth.BluetoothConnection connection) |
java.lang.Short |
onDisconnected(ej.bluetooth.BluetoothConnection connection) |
void |
onServiceAdded(ej.bluetooth.BluetoothService service,
short[] handles) |
java.lang.Short |
onServiceDiscovered(ej.bluetooth.BluetoothConnection connection,
ej.bluetooth.BluetoothService service) |
void |
sendEvent(byte[] event) |
void |
setup(ej.rcommand.RemoteCommandManager rcommandManager) |
public static BluetoothController getInstance()
public void setup(ej.rcommand.RemoteCommandManager rcommandManager)
public void sendEvent(byte[] event)
@Nullable public ej.bluetooth.BluetoothConnection getConnection(short connHandle)
@Nullable public java.lang.Short getConnHandle(ej.bluetooth.BluetoothConnection connection)
@Nullable public ej.bluetooth.BluetoothAttribute getLocalAttribute(short attributeHandle)
@Nullable public java.lang.Short getLocalAttributeHandle(ej.bluetooth.BluetoothAttribute attribute)
@Nullable public ej.bluetooth.BluetoothAttribute getRemoteAttribute(@Nullable ej.bluetooth.BluetoothConnection connection, short attributeHandle)
@Nullable public java.lang.Short getRemoteAttributeHandle(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothAttribute attribute)
public void onAdapterEnabled()
public void onAdapterDisabled()
public short onConnected(ej.bluetooth.BluetoothConnection connection)
@Nullable public java.lang.Short onDisconnected(ej.bluetooth.BluetoothConnection connection)
public void onServiceAdded(ej.bluetooth.BluetoothService service, short[] handles)
@Nullable public java.lang.Short onServiceDiscovered(ej.bluetooth.BluetoothConnection connection, ej.bluetooth.BluetoothService service)