User's Manual

property. The content value is written to remote peer device. The writing method
depends on property of the characteristic.
When writing to a configuration handle to the remote device, Bluetooth
specification defines the format to be 0x0000, 0x0001 or 0x0002. Value 0x0001 (01
00 over the air in little endian) starts notification, value 0x0002 (02 00 over the air
in little endian) starts indication and value 0x0000 stops both of them. To start
notification or indication depends on service specification as well as property of the
characteristic. Please refer to Table 1 and Figure 2 for details.
Example: CHW,001A,64 // Set value of characteristic
// with value handle 0x001A to be
// 100 on remote device
CHW,001B,0100 // Start notification on characteristic
// by writing 0x0001 to its configuration
// handle 0x001B on remote device
3.3.3.6 CURC
According to command interpolation method described in section 3.3.3.1, command
“CURC” reads configuration of a characteristic in client service from remote device
by addressing its UUID.
This command expects one parameter, which is the UUID of the characteristic in
client service. The UUID could be either 16-bit short UUID for public characteristic,
or 128bit long UUID for private characteristic. Only characteristic with property of
notification or indication has configuration, therefore, addressable by this
command.
This command is only effective if an active link with peer exists and the UUID
parameter is valid. The configuration of a characteristic, if exists, is always readable.
The value returned is retrieved from remote peer device.
The return value is 0000, 0100 or 0200, or endian format for value 0x0000, 0x0001
and 0x0002. Return value 0000 means no indication or notification starts; return
value 0100 means notification starts and 0200 means indication starts.
Example: CURC,2A19 // Read configuration of characteristic
// Battery Level with UUID 0x2A19 from
// remote device
3.3.3.7 CURV