Bluetooth: tester: Update server commands with sequence params

Most iuts data base are intended to have its attribute database builded
in sequence and its constant (except attribute values, parameters,
permissions). Patch allows btp specification to cover also devices
which cannot assign an ID right after issuing add attribute command or
set attribute component (which points to defined attribute ID).

Change-Id: Ie8e5ed223609cca2b6e3fb8444065f33b1408142
Signed-off-by: Grzegorz Kolodziejczyk <grzegorz.kolodziejczyk@tieto.com>
This commit is contained in:
Grzegorz Kolodziejczyk 2016-04-01 18:12:54 +02:00 committed by Johan Hedberg
parent 1bc53f3f47
commit 38b202e810
1 changed files with 29 additions and 0 deletions

View File

@ -553,6 +553,15 @@ Commands and responses:
UUID (2 or 16 octets)
Response parameters: Characteristic_ID (2 octets)
Possible values for Service_ID:
0x0000 = Add in sequence
0x0001-0xffff = Add to service
Possible response parameters:
0x0000 = Relative ID, will be set after
start_server
0x0001-0xffff = ID in db
Possible values for the Properties parameter are a bit-wise
of the following bits:
@ -595,6 +604,15 @@ Commands and responses:
UUID (2 or 16 octets)
Response parameters: Descriptor_ID (2 octets)
Possible values for Characteristic_ID:
0x0000 = Add in sequence
0x0001-0xffff = Add to characteristic
Possible response parameters:
0x0000 = Relative ID, will be set after
start_server
0x0001-0xffff = ID in db
This command is used to add new characteristic descriptor
to GATT Server. The command shall be used right after
Add Characteristic or previous Add Descriptor command.
@ -622,6 +640,11 @@ Commands and responses:
Value (1-512 octets)
Response parameters: <none>
Possible values for Characteristic_ID:
0x0000 = Set last attribute in db value
0x0001-0xffff = Set value of attribute
under ID
This command is used to set the value of characteristic
or descriptor.
@ -656,6 +679,12 @@ Commands and responses:
Encryption_Key_Size (1 octet)
Response parameters: <none>
Possible values for Attribute_ID:
0x0000 = Set encryption key of last
added attribute
0x0001-0xffff = Set enctryption of
attribute under ID
This command is used to set required Encryption Key Size of an
attribute. It shall be used only if encryption or authentication
is needed to have access to this attribute. Otherwise an error