Definitions in btgattsrv.h

Preprocessor macro definitions for the btgattsrv.h header file in this library.

Definitions:

#define BT_GATT_SRV_VERSION 0x00010000
The Bluetooth Generic Attribute (GATT) server API version.

For example, the value 0x00000900 translates to 0000.09.00 or v0.9.0.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_BROADCAST 0x01
Allow for the broadcasting of Generic Attributes(GATT) characteristic values.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_READ 0x02
Allow the characteristic values to be read.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_WRITE_NORESP 0x04
Allow characteristic values without responses to be written.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_WRITE 0x08
Allow for characteristic values to be written.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_NOTIFY 0x10
Permit notification of characteristic values.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_INDICATE 0x20
Permit indications of characteristic values.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_WRITE_SIGNED 0x40
Permit signed writes of the GATT characteristic values.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PROPERTY_EXT_PROP 0x80
Additional characteristic properties are defined in the characteristic extended properties descriptor.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_NONE 0x0000
Flag that when set, indicates that no permission is required.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_WRITEABLE 0x0001
Flag that indicates whether the client is allowed to write to an attribute on the server.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_READABLE 0x0002
Flag that indicates whether the client is allowed to read an attribute from the server.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_AUTHEN_REQ_WRITE 0x0004
Flag that indicates whether authentication is required to write to the attribute on the server.

If this flag is set, GATT_SRV_ATT_PERMISSION_WRITEABLE must also be set.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_AUTHEN_REQ_READ 0x0008
Flag that indicates whether authentication is required to read an attribute from the server or to receive notification or indication events from the server.

If this flag is set, GATT_SRV_ATT_PERMISSION_READABLE must also be set.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_MITM_WRITE 0x0010
Flag that indicates whether Man In The Middle (MITM) protection is required to write to an attribute on the server.

If this value is not set, then no MITM protection is required and the Just Works security model is used. If this value is set, GATT_SRV_ATT_PERMISSION_WRITEABLE and GATT_SRV_ATT_PERMISSION_AUTHEN_REQ_WRITE must also be set.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_MITM_READ 0x0020
Flag that indicates whether Man In The Middle (MITM) protection is required to read from an attribute on the server or to receive notification or indication events about an attribute from the server.

If this flag is not set, then no MITM protection is required and the Just Works security model is used. If this flag is set, GATT_SRV_ATT_PERMISSION_READABLE and GATT_SRV_ATT_PERMISSION_AUTHEN_REQ_READ must also be set.

Since: BlackBerry 10.2.0

#define BT_GATT_SRV_ATT_PERMISSION_RESERVED_1 0x0040
Flag reserved for future use.

Since: BlackBerry 10.3.0

#define BT_GATT_SRV_ATT_PERMISSION_RESERVED_2 0x0080
Flag reserved for future use.

Since: BlackBerry 10.3.0

Library:

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