TinyB
0.5.1
TinyB - The Tiny Bluetooth LE library
|
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< BluetoothGattCharacteristic > | getCharacteristics () |
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 |
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
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.
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
native List<BluetoothGattCharacteristic> tinyb.BluetoothGattService.getCharacteristics | ( | ) |
Returns a list of BluetoothGattCharacteristics this service exposes.
native BluetoothDevice tinyb.BluetoothGattService.getDevice | ( | ) |
Returns the device to which this service belongs to.
native boolean tinyb.BluetoothGattService.getPrimary | ( | ) |
Returns true if this service is a primary service, false if secondary.
native String tinyb.BluetoothGattService.getUUID | ( | ) |
Get the UUID of this service