English
Language : 

UM1755 Datasheet, PDF (66/123 Pages) STMicroelectronics – The purpose of this document is to describe the design of the application
Vendor specific commands
UM1755
Description:
Add a characteristic to a service.
Table 128. Aci_Gatt_Add_Characteristic command parameters
Parameter
Size
Description
Service_Handle
Char_UUID_Type
2 bytes
1 byte
Handle of the service to which the characteristic has to be
added
0x01: 16-bit UUID
0x02: 128-bit UUID
Char_UUID
2 bytes or
16-bit or 128-bit UUID
16 bytes
Char_Value_Length
1 byte Maximum length of the characteristic value
Char_Properties
1 byte
Bitwise OR values of Characteristic Properties (defined in
Volume 3, Section 3.3.3.1 of Bluetooth Specification 4.0)
Security_Permissions
1 byte
0x00: ATTR_PERMISSION_NONE
0x01: Need authentication to read
0x02: Need authorization to read
0x04: Link should be encrypted to read
0x08: Need authentication to write
0x10: Need authorization to write
0x20: Link should be encrypted for write
Gatt_Evt_Mask
1 byte
0x01: GATT_SERVER_ATTR_WRITE
The application will be notified when a client writes to this
attribute
0x02: GATT_INTIMATE_AND_WAIT_FOR_APPL_AUTH
The application will be notified when a write request/write
cmd/signed write cmd is received by the server for this
attribute
0x04: GATT_INTIMATE_APPL_WHEN_READ_N_WAIT
The application will be notified when a read request of any
type is got for this attribute
Encryption_Key_Size
1 byte
The minimum encryption key size requirement for this
attribute. Valid Range: 7 to 16
isVariable
1 byte
0x00: The attribute has a fixed length value field
0x01: The attribute has a variable length value field
66/123
DocID026257 Rev 2