User's Manual

Command “PC” expects three or four parameters.
The first parameter is 128-bit UUID for private characteristic. There are many ways
that user could generate 128-bit UUID with little possibility of confliction. Please
refer to Wikipedia for details
(http://en.wikipedia.org/wiki/Universally_unique_identifier).
The second parameter is 8-bit property bitmap of the characteristic. Please check
table 1 for characteristic property.
The third parameter is 8-bit value that indicates the maximum data size in octet that
the value of private characteristic holds. The real data size could be smaller. The
sum of data size for all private characteristics must be lower than 200 octets.
The optional fourth parameter is 8-bit security flag bitmap of the characteristic. The
bitmap is described in table 7. Notice that if authenticated read or write is defined,
then authentication bit in command “SR” must be set and module must have I/O
capability for security keys. If such parameter is not provided, then access to the
characteristic requires no additional GATT security.
Table 7: Security flags of characteristic
Name
Bitmap
Description
ENCR_R
0b00000001
Encryption required to read the
characteristic
AUTH_R
0b00000010
Authentication required to read the
characteristic
ENCR_W
0b00010000
Encryption required to write the
characteristic
AUTH_W
0b00100000
Authentication required to write
the characteristic
Example: PC,11223344556677889900AABBCCDDEEFF,1A,05
// Define a private characteristic with UUID
// 0x11223344556677889900AABBCCDDEEFF. It is readable, writeable and could
// perform notification. Maximum data size for this characteristic is 5 octets.
3.3.4.2 PS
Command “PS” sets the UUID of the private service. This command must be called
before command “PC” is called. This command is only effective if private service bit
is set (see section 3.2.1.13 and 3.2.1.2 for command “SS” and its bitmap parameter).