|
| BluetoothObject (long instance) |
|
void | finalize () |
|
native String | getObjectPath () |
|
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
native void tinyb.BluetoothGattCharacteristic.disableValueNotifications |
( |
| ) |
|
Disables notifications of the value and unregisters the callback object passed through the corresponding enable method. It disables notications at BLE level for this characteristic.
native void tinyb.BluetoothGattCharacteristic.enableValueNotifications |
( |
BluetoothNotification< byte[]> |
callback | ) |
|
Enables notifications for the value and calls run function of the BluetoothNotification object. It enables notifications for this characteristic at BLE level.
- 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. |
Find a BluetoothGattDescriptor. 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 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.
Find a BluetoothGattDescriptor. 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.
Returns a list of BluetoothGattDescriptors this characteristic exposes.
- Returns
- A list of BluetoothGattDescriptors exposed by this characteristic NULL if an error occurred
native String [] tinyb.BluetoothGattCharacteristic.getFlags |
( |
| ) |
|
Returns the flags this characterstic has.
- Returns
- A list of flags for this characteristic.
native boolean tinyb.BluetoothGattCharacteristic.getNotifying |
( |
| ) |
|
Returns true if notification for changes of this characteristic are activated.
- Returns
- True if notificatios are activated.
Returns the service to which this characteristic belongs to.
- Returns
- The service.
native String tinyb.BluetoothGattCharacteristic.getUUID |
( |
| ) |
|
Get the UUID of this characteristic.
- Returns
- The 128 byte UUID of this characteristic, NULL if an error occurred
native byte [] tinyb.BluetoothGattCharacteristic.getValue |
( |
| ) |
|
Returns the cached value of this characteristic, if any.
- Returns
- The cached value of this characteristic.
Reads the value of this characteristic.
- Returns
- A std::vector<unsgined char> containing the value of this characteristic.
native boolean tinyb.BluetoothGattCharacteristic.writeValue |
( |
byte[] |
argValue | ) |
throws BluetoothException |
Writes the value of this characteristic.
- 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/BluetoothGattCharacteristic.java