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