@@ -712,8 +712,8 @@ typedef uint8_t (*bt_gatt_attr_func_t)(const struct bt_gatt_attr *attr,
712
712
*
713
713
* Iterate attributes in the given range matching given UUID and/or data.
714
714
*
715
- * @param start_handle Start handle.
716
- * @param end_handle End handle. Often set to start_handle + attr_count or
715
+ * @param start_handle Start attribute handle.
716
+ * @param end_handle End attribute handle. Often set to start_handle + attr_count or
717
717
* BT_ATT_LAST_ATTRIBUTE_HANDLE.
718
718
* @param uuid UUID to match, passing NULL skips UUID matching.
719
719
* @param attr_data Attribute data to match, passing NULL skips data matching.
@@ -731,8 +731,8 @@ void bt_gatt_foreach_attr_type(uint16_t start_handle, uint16_t end_handle,
731
731
*
732
732
* Iterate attributes in the given range.
733
733
*
734
- * @param start_handle Start handle.
735
- * @param end_handle End handle.
734
+ * @param start_handle Starting attribute handle.
735
+ * @param end_handle Ending attribute handle.
736
736
* @param func Callback function.
737
737
* @param user_data Data to pass to the callback.
738
738
*/
@@ -1827,15 +1827,20 @@ struct bt_gatt_discover_params {
1827
1827
struct {
1828
1828
/** Include service attribute declaration handle */
1829
1829
uint16_t attr_handle ;
1830
- /** Included service start handle */
1830
+ /** Starting attribute handle for included service */
1831
1831
uint16_t start_handle ;
1832
- /** Included service end handle */
1832
+ /** Ending attribute handle for included service */
1833
1833
uint16_t end_handle ;
1834
1834
} _included ;
1835
- /** Discover start handle */
1835
+ /** Starting attribute handle to begin discovery */
1836
1836
uint16_t start_handle ;
1837
1837
};
1838
- /** Discover end handle */
1838
+ /** @brief Ending attribute handle to stop discovery at
1839
+ *
1840
+ * @note When discovery begins this can be set to
1841
+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE to discover all attributes
1842
+ * in the service.
1843
+ */
1839
1844
uint16_t end_handle ;
1840
1845
/** Discover type */
1841
1846
uint8_t type ;
@@ -1940,9 +1945,27 @@ struct bt_gatt_read_params {
1940
1945
bool variable ;
1941
1946
} multiple ;
1942
1947
struct {
1943
- /** Attribute handle to start reading from. */
1948
+ /** @brief Requested start attribute handle number.
1949
+ *
1950
+ * @details The starting handle is set to the starting point of the range
1951
+ * over which this read should be performed. For example, this could be
1952
+ * set to @ref BT_ATT_FIRST_ATTRIBUTE_HANDLE to set the starting point of
1953
+ * the range at the beginning of the GATT database, or to the starting
1954
+ * handle of a service after discovery.
1955
+ *
1956
+ * This value is automatically incremented by the stack after
1957
+ * processing each matching handle-value pair returned by the server.
1958
+ */
1944
1959
uint16_t start_handle ;
1945
- /** Attribute handle to stop reading at. */
1960
+ /** @brief Requested end attribute handle number.
1961
+ *
1962
+ * @details The end handle is set to the ending point of the range over
1963
+ * which this read should be performed. For example, this could be set to
1964
+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE to set the ending point of the range
1965
+ * at the end of the GATT database, or to the end handle for service after
1966
+ * discovery, where the end_handle is available in the
1967
+ * @ref bt_gatt_service_val.
1968
+ */
1946
1969
uint16_t end_handle ;
1947
1970
/** 2 or 16 octet UUID. */
1948
1971
const struct bt_uuid * uuid ;
0 commit comments