Class BluetoothController
- java.lang.Object
-
- ej.library.iot.rcommand.bluetooth.BluetoothController
-
public class BluetoothController extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BluetoothConnectiongetConnection(short connHandle)ShortgetConnHandle(BluetoothConnection connection)static BluetoothControllergetInstance()BluetoothAttributegetLocalAttribute(short attributeHandle)ShortgetLocalAttributeHandle(BluetoothAttribute attribute)BluetoothAttributegetRemoteAttribute(BluetoothConnection connection, short attributeHandle)ShortgetRemoteAttributeHandle(BluetoothConnection connection, BluetoothAttribute attribute)voidonAdapterDisabled()voidonAdapterEnabled()shortonConnected(BluetoothConnection connection)ShortonDisconnected(BluetoothConnection connection)voidonServiceAdded(BluetoothService service, short[] handles)ShortonServiceDiscovered(BluetoothConnection connection, BluetoothService service)byte[]pollEvent()voidsendEvent(byte[] event)voidsetup(RemoteCommandManager rcommandManager)
-
-
-
Method Detail
-
getInstance
public static BluetoothController getInstance()
-
setup
public void setup(RemoteCommandManager rcommandManager)
-
pollEvent
@Nullable public byte[] pollEvent()
-
sendEvent
public void sendEvent(byte[] event)
-
getConnection
@Nullable public BluetoothConnection getConnection(short connHandle)
-
getConnHandle
@Nullable public Short getConnHandle(BluetoothConnection connection)
-
getLocalAttribute
@Nullable public BluetoothAttribute getLocalAttribute(short attributeHandle)
-
getLocalAttributeHandle
@Nullable public Short getLocalAttributeHandle(BluetoothAttribute attribute)
-
getRemoteAttribute
@Nullable public BluetoothAttribute getRemoteAttribute(@Nullable BluetoothConnection connection, short attributeHandle)
-
getRemoteAttributeHandle
@Nullable public Short getRemoteAttributeHandle(BluetoothConnection connection, BluetoothAttribute attribute)
-
onAdapterEnabled
public void onAdapterEnabled()
-
onAdapterDisabled
public void onAdapterDisabled()
-
onConnected
public short onConnected(BluetoothConnection connection)
-
onDisconnected
@Nullable public Short onDisconnected(BluetoothConnection connection)
-
onServiceAdded
public void onServiceAdded(BluetoothService service, short[] handles)
-
onServiceDiscovered
@Nullable public Short onServiceDiscovered(BluetoothConnection connection, BluetoothService service)
-
-