5.4.3.7 Read Local Characteristic Value or Query Server Handle
| Firmware Version 1.0 | Firmware Version 1.2 and Later |
|---|---|
SHR,<hex16> |
|
Note: All firmware version 1.0 syntax remains valid in version 1.2 and later. | |
The command SHR or QSH reads the content of the GATT service characteristic on the local device by addressing its handle.
Command SHR or QSH takes one parameter, the 16-bit hex value of the handle, which corresponds to the server service characteristic. The user must find a match between the handle and its characteristic UUID by using command LS.
This command is effective with or without an active connection. Reading the content of a characteristic locally is always permitted regardless of the characteristic property. Only use the characteristic property for remote access. The value returned is retrieved from the local device and equals what was written recently.
| Item | Firmware Version 1.0 and Later | Description |
|---|---|---|
| Example: | SHR,001A | Read the local content of characteristic with handle 0x001A |
| Response: | <Value read> | Success |
Err | Syntax error or invalid parameter | |
N/A | Value is not assigned |
| Item | Firmware Version 1.2 and Later | Description |
|---|---|---|
| Example: | QSH,001A | Read the local content of characteristic with handle 0x001A |
| Response: | <Value read> | Success |
Err | Syntax error or invalid parameter | |
N/A | Value is not assigned |
