TinyB  0.5.1
TinyB - The Tiny Bluetooth LE library
Public Member Functions | List of all members
tinyb.BluetoothGattService Class Reference
Inheritance diagram for tinyb.BluetoothGattService:
tinyb.BluetoothObject

Public Member Functions

native BluetoothType getBluetoothType ()
 
native BluetoothAdapter clone ()
 
BluetoothGattCharacteristic find (String UUID, Duration duration)
 
BluetoothGattCharacteristic find (String UUID)
 
native String getUUID ()
 
native BluetoothDevice getDevice ()
 
native boolean getPrimary ()
 
native List< BluetoothGattCharacteristicgetCharacteristics ()
 
- Public Member Functions inherited from tinyb.BluetoothObject
native BluetoothType getBluetoothType ()
 
native BluetoothObject clone ()
 
boolean equals (Object obj)
 
int hashCode ()
 
synchronized void close ()
 

Additional Inherited Members

- Protected Member Functions inherited from tinyb.BluetoothObject
 BluetoothObject (long instance)
 
void finalize ()
 
native String getObjectPath ()
 
- Protected Attributes inherited from tinyb.BluetoothObject
long nativeInstance
 

Detailed Description

Provides access to Bluetooth GATT characteristic. Follows the BlueZ adapter API available at: http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt

Member Function Documentation

BluetoothGattCharacteristic tinyb.BluetoothGattService.find ( String  UUID,
Duration  duration 
)

Find a BluetoothGattCharacteristic. If parameter UUID is not null, the returned object will have to match it. It will first check for existing objects. It will not turn on discovery or connect to devices. UUID optionally specify the UUID of the BluetoothGattCharacteristic you are waiting for timeout the function will return after timeout time, a value of zero means wait forever. If object is not found during this time null will be returned.

Returns
An object matching the UUID or null if not found before timeout expires or event is canceled.
BluetoothGattCharacteristic tinyb.BluetoothGattService.find ( String  UUID)

Find a BluetoothGattCharacteristic. If parameter UUID is not null, the returned object will have to match it. It will first check for existing objects. It will not turn on discovery or connect to devices. UUID optionally specify the UUID of the BluetoothGattDescriptor you are waiting for

Returns
An object matching the UUID or null if not found before timeout expires or event is canceled.
native List<BluetoothGattCharacteristic> tinyb.BluetoothGattService.getCharacteristics ( )

Returns a list of BluetoothGattCharacteristics this service exposes.

Returns
A list of BluetoothGattCharacteristics exposed by this service
native BluetoothDevice tinyb.BluetoothGattService.getDevice ( )

Returns the device to which this service belongs to.

Returns
The device.
native boolean tinyb.BluetoothGattService.getPrimary ( )

Returns true if this service is a primary service, false if secondary.

Returns
true if this service is a primary service, false if secondary.
native String tinyb.BluetoothGattService.getUUID ( )

Get the UUID of this service

Returns
The 128 byte UUID of this service, NULL if an error occurred

The documentation for this class was generated from the following file: