|
| BluetoothObject (long instance) |
|
void | finalize () |
|
native String | getObjectPath () |
|
long | nativeInstance |
|
Provides access to Bluetooth GATT descriptor. Follows the BlueZ adapter API available at: http://git.kernel.org/cgit/bluetooth/bluez.git/tree/doc/gatt-api.txt
native void tinyb.BluetoothGattDescriptor.disableValueNotifications |
( |
| ) |
|
Disables notifications of the value and unregisters the callback object passed through the corresponding enable method.
native void tinyb.BluetoothGattDescriptor.enableValueNotifications |
( |
BluetoothNotification< byte[]> |
callback | ) |
|
Enables notifications for the value and calls run function of the BluetoothNotification object.
- Parameters
-
callback | A BluetoothNotification<byte[]> object. Its run function will be called when a notification is issued. The run function will deliver the new value of the value property. |
Returns the characteristic to which this descriptor belongs to.
- Returns
- The characteristic.
native String tinyb.BluetoothGattDescriptor.getUUID |
( |
| ) |
|
Get the UUID of this descriptor.
- Returns
- The 128 byte UUID of this descriptor, NULL if an error occurred
native byte [] tinyb.BluetoothGattDescriptor.getValue |
( |
| ) |
|
Returns the cached value of this descriptor, if any.
- Returns
- The cached value of this descriptor.
native byte [] tinyb.BluetoothGattDescriptor.readValue |
( |
| ) |
|
Reads the value of this descriptor
- Returns
- A vector<uchar> containing data from this descriptor
native boolean tinyb.BluetoothGattDescriptor.writeValue |
( |
byte[] |
argValue | ) |
throws BluetoothException |
Writes the value of this descriptor.
- Parameters
-
[in] | arg_value | The data as vector<uchar> to be written packed in a GBytes struct |
- Returns
- TRUE if value was written succesfully
The documentation for this class was generated from the following file:
- /iotdk/jenkins/workspace/tinyb-doc/java/BluetoothGattDescriptor.java