Package ej.bluetooth
Class BluetoothConnection
- java.lang.Object
-
- ej.bluetooth.BluetoothConnection
-
public class BluetoothConnection extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description BluetoothConnection(BluetoothAddress address, short connHandle)Not in API.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddService(BluetoothService service)Not in API.voidcleanupFeatureListeners(ej.kf.Feature feature)Not in API.booleandisconnect()booleandiscoverService(BluetoothUuid uuid)booleandiscoverServices()BluetoothAddressgetAddress()BluetoothAttributegetAttribute(short attributeHandle)Not in API.shortgetHandle()Not in API.BluetoothServicegetService(short serviceHandle)Not in API.booleansendExecuteWriteResponse(BluetoothAttribute attribute, byte status)booleansendNotification(BluetoothCharacteristic characteristic, byte[] value, boolean confirm)booleansendPairRequest()booleansendPairResponse(boolean accept)booleansendPasskeyResponse(boolean accept, int passkey)booleansendPrepareWriteResponse(BluetoothAttribute attribute, byte status, byte[] value, int offset)booleansendReadRequest(BluetoothAttribute attribute)booleansendReadResponse(BluetoothAttribute attribute, byte status, byte[] value)booleansendWriteRequest(BluetoothAttribute attribute, byte[] value)booleansendWriteResponse(BluetoothAttribute attribute, byte status)
-
-
-
Constructor Detail
-
BluetoothConnection
public BluetoothConnection(BluetoothAddress address, short connHandle)
Not in API.
-
-
Method Detail
-
getAddress
public BluetoothAddress getAddress()
-
cleanupFeatureListeners
public void cleanupFeatureListeners(ej.kf.Feature feature)
Not in API.
-
addService
public void addService(BluetoothService service)
Not in API.
-
getService
@Nullable public BluetoothService getService(short serviceHandle)
Not in API.
-
getAttribute
@Nullable public BluetoothAttribute getAttribute(short attributeHandle)
Not in API.
-
getHandle
public short getHandle()
Not in API.
-
disconnect
public boolean disconnect()
-
sendPairRequest
public boolean sendPairRequest()
-
sendPairResponse
public boolean sendPairResponse(boolean accept)
-
sendPasskeyResponse
public boolean sendPasskeyResponse(boolean accept, int passkey)
-
discoverServices
public boolean discoverServices()
-
discoverService
public boolean discoverService(BluetoothUuid uuid)
-
sendReadRequest
public boolean sendReadRequest(BluetoothAttribute attribute)
-
sendWriteRequest
public boolean sendWriteRequest(BluetoothAttribute attribute, byte[] value)
-
sendReadResponse
public boolean sendReadResponse(BluetoothAttribute attribute, byte status, byte[] value)
-
sendWriteResponse
public boolean sendWriteResponse(BluetoothAttribute attribute, byte status)
-
sendPrepareWriteResponse
public boolean sendPrepareWriteResponse(BluetoothAttribute attribute, byte status, byte[] value, int offset)
-
sendExecuteWriteResponse
public boolean sendExecuteWriteResponse(BluetoothAttribute attribute, byte status)
-
sendNotification
public boolean sendNotification(BluetoothCharacteristic characteristic, byte[] value, boolean confirm)
-
-