public class BluetoothConnection extends Object
| Constructor and Description |
|---|
BluetoothConnection(BluetoothAddress address,
short connHandle)
Not in API.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addService(BluetoothService service)
Not in API.
|
void |
cleanupFeatureListeners(Feature feature)
Not in API.
|
boolean |
disconnect() |
boolean |
discoverService(BluetoothUuid uuid) |
boolean |
discoverServices() |
BluetoothAddress |
getAddress() |
BluetoothAttribute |
getAttribute(short attributeHandle)
Not in API.
|
short |
getHandle()
Not in API.
|
BluetoothService |
getService(short serviceHandle)
Not in API.
|
boolean |
sendExecuteWriteResponse(BluetoothAttribute attribute,
byte status) |
boolean |
sendNotification(BluetoothCharacteristic characteristic,
byte[] value,
boolean confirm) |
boolean |
sendPairRequest() |
boolean |
sendPairResponse(boolean accept) |
boolean |
sendPasskeyResponse(boolean accept,
int passkey) |
boolean |
sendPrepareWriteResponse(BluetoothAttribute attribute,
byte status,
byte[] value,
int offset) |
boolean |
sendReadRequest(BluetoothAttribute attribute) |
boolean |
sendReadResponse(BluetoothAttribute attribute,
byte status,
byte[] value) |
boolean |
sendWriteRequest(BluetoothAttribute attribute,
byte[] value) |
boolean |
sendWriteResponse(BluetoothAttribute attribute,
byte status) |
public BluetoothConnection(BluetoothAddress address, short connHandle)
public void addService(BluetoothService service)
public void cleanupFeatureListeners(Feature feature)
public boolean disconnect()
public boolean discoverService(BluetoothUuid uuid)
public boolean discoverServices()
public BluetoothAddress getAddress()
@Nullable public BluetoothAttribute getAttribute(short attributeHandle)
public short getHandle()
@Nullable public BluetoothService getService(short serviceHandle)
public boolean sendExecuteWriteResponse(BluetoothAttribute attribute, byte status)
public boolean sendNotification(BluetoothCharacteristic characteristic, byte[] value, boolean confirm)
public boolean sendPairRequest()
public boolean sendPairResponse(boolean accept)
public boolean sendPasskeyResponse(boolean accept,
int passkey)
public boolean sendPrepareWriteResponse(BluetoothAttribute attribute, byte status, byte[] value, int offset)
public boolean sendReadRequest(BluetoothAttribute attribute)
public boolean sendReadResponse(BluetoothAttribute attribute, byte status, byte[] value)
public boolean sendWriteRequest(BluetoothAttribute attribute, byte[] value)
public boolean sendWriteResponse(BluetoothAttribute attribute, byte status)