public final class BluetoothGatt extends Object
Constant Summary
int | GATT_SUCCESS |
Public Constructor Summary
Public Method Summary
void |
close()
|
BluetoothGattService |
getService(UUID uuid)
|
List<BluetoothGattService> | |
boolean |
setCharacteristicNotification(BluetoothGattCharacteristic
characteristic, boolean enable)
|
boolean |
writeCharacteristic(BluetoothGattCharacteristic
characteristic)
|
boolean |
writeDescriptor(BluetoothGattDescriptor
descriptor)
|
Inherited Method Summary
Object |
clone()
|
boolean |
equals(Object arg0)
|
void |
finalize()
|
final Class<?> |
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String |
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
Constants
public static final int GATT_SUCCESS
Constant Value: 0
Public Constructors
public BluetoothGatt ()
Public Methods
public void close ()
public BluetoothGattService getService (UUID uuid)
Parameters
uuid |
---|
public List<BluetoothGattService> getServices ()
public boolean setCharacteristicNotification (BluetoothGattCharacteristic characteristic, boolean enable)
Parameters
characteristic | |
---|---|
enable |
public boolean writeCharacteristic (BluetoothGattCharacteristic characteristic)
Parameters
characteristic |
---|
public boolean writeDescriptor (BluetoothGattDescriptor descriptor)
Parameters
descriptor |
---|