Bluetooth: GATT: Add support for Read Using Characteristic UUID
This patch adds support for Read Using Characteristic UUID which is one of the procedure to read the characteristic value especially when the client only knows the characteristic UUID and does not know the handle of the characteristic. Signed-off-by: Tedd Ho-Jeong An <tedd.an@intel.com>
This commit is contained in:
parent
32367c0dfc
commit
100f671bca
2 changed files with 42 additions and 1 deletions
|
@ -977,9 +977,14 @@ typedef u8_t (*bt_gatt_read_func_t)(struct bt_conn *conn, u8_t err,
|
|||
* @param handle_count If equals to 1 single.handle and single.offset
|
||||
* are used. If >1 Read Multiple Characteristic
|
||||
* Values is performed and handles are used.
|
||||
* If equals to 0 by_uuid is used for Read Using
|
||||
* Characteristic UUID.
|
||||
* @param handle Attribute handle
|
||||
* @param offset Attribute data offset
|
||||
* @param handles Handles to read in Read Multiple Characteristic Values
|
||||
* @param start_handle First requested handle number
|
||||
* @param end_handle Last requested handle number
|
||||
* @param uuid 2 or 16 octet UUID
|
||||
*/
|
||||
struct bt_gatt_read_params {
|
||||
struct bt_att_req _req;
|
||||
|
@ -991,6 +996,11 @@ struct bt_gatt_read_params {
|
|||
u16_t offset;
|
||||
} single;
|
||||
u16_t *handles;
|
||||
struct {
|
||||
u16_t start_handle;
|
||||
u16_t end_handle;
|
||||
struct bt_uuid *uuid;
|
||||
} by_uuid;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue