Zephyr API Documentation 4.1.99
A Scalable Open Source RTOS
|
|
4.1.99 |
GATT Read parameters. More...
#include <gatt.h>
Data Fields | ||
bt_gatt_read_func_t | func | |
Read attribute callback. | ||
size_t | handle_count | |
If equals to 1 single.handle and single.offset are used. | ||
union { | ||
struct { | ||
uint16_t handle | ||
Attribute handle. More... | ||
uint16_t offset | ||
Attribute data offset. More... | ||
} single | ||
struct { | ||
uint16_t * handles | ||
Attribute handles to read with Read Multiple Characteristic Values. More... | ||
bool variable | ||
If true use Read Multiple Variable Length Characteristic Values procedure. More... | ||
} multiple | ||
struct { | ||
uint16_t start_handle | ||
Requested start attribute handle number. More... | ||
uint16_t end_handle | ||
Requested end attribute handle number. More... | ||
const struct bt_uuid * uuid | ||
2 or 16 octet UUID. More... | ||
} by_uuid | ||
}; | ||
enum bt_att_chan_opt | chan_opt | |
Att channel options. | ||
GATT Read parameters.
union { ... } bt_gatt_read_params |
struct { ... } bt_gatt_read_params::by_uuid |
enum bt_att_chan_opt bt_gatt_read_params::chan_opt |
Att channel options.
uint16_t bt_gatt_read_params::end_handle |
Requested end attribute handle number.
The end handle is set to the ending point of the range over which this read should be performed. For example, this could be set to BT_ATT_LAST_ATTRIBUTE_HANDLE to set the ending point of the range at the end of the GATT database, or to the end handle for service after discovery, where the end_handle is available in the bt_gatt_service_val.
bt_gatt_read_func_t bt_gatt_read_params::func |
Read attribute callback.
uint16_t bt_gatt_read_params::handle |
Attribute handle.
size_t bt_gatt_read_params::handle_count |
If equals to 1 single.handle and single.offset are used.
If greater than 1 multiple.handles are used. If equals to 0 by_uuid is used for Read Using Characteristic UUID.
uint16_t* bt_gatt_read_params::handles |
Attribute handles to read with Read Multiple Characteristic Values.
struct { ... } bt_gatt_read_params::multiple |
uint16_t bt_gatt_read_params::offset |
Attribute data offset.
struct { ... } bt_gatt_read_params::single |
uint16_t bt_gatt_read_params::start_handle |
Requested start attribute handle number.
The starting handle is set to the starting point of the range over which this read should be performed. For example, this could be set to BT_ATT_FIRST_ATTRIBUTE_HANDLE to set the starting point of the range at the beginning of the GATT database, or to the starting handle of a service after discovery.
This value is automatically incremented by the stack after processing each matching handle-value pair returned by the server.
const struct bt_uuid* bt_gatt_read_params::uuid |
2 or 16 octet UUID.
bool bt_gatt_read_params::variable |
If true use Read Multiple Variable Length Characteristic Values procedure.
The values of the set of attributes may be of variable or unknown length. If false use Read Multiple Characteristic Values procedure. The values of the set of attributes must be of a known fixed length, with the exception of the last value that can have a variable length.