bt_gatt_srv_att_value_t

GATT attribute data type.

Synopsis:

#include <btapi/btgattsrv.h>
 
typedef enum {
      BT_GATT_SRV_ATT_VALUE_NONE = 0x00   
      BT_GATT_SRV_ATT_VALUE_STATIC = 0x01   
      BT_GATT_SRV_ATT_VALUE_DYNAMIC = 0x02   
      BT_GATT_SRV_ATT_VALUE_VOLATILE = 0x03   
} bt_gatt_srv_att_value_t;

Since:

BlackBerry 10.2.0

Data:

BT_GATT_SRV_ATT_VALUE_NONE
A value indicating that neither readable nor writeable value is used.

This value is used for services that do not have associated data.

BT_GATT_SRV_ATT_VALUE_STATIC
Static value.

The data must be populated at the time that the service is created.

BT_GATT_SRV_ATT_VALUE_DYNAMIC
Dynamic value.

Callbacks will be triggered for all read/write operations.

BT_GATT_SRV_ATT_VALUE_VOLATILE
Volatile value.

The data is only populated at the time that the service is created. The remote device is allowed to read or write to this value if permission allows. The bt_gatt_srv_write_alert_cb or bt_gatt_srv_read_alert_cb callback is invoked when the remote device performs a read or write operation.

Library:

libbtapi (For the qcc command, use the -l btapi option to link against this library)

Description: