@@ -330,9 +330,9 @@ struct bt_gatt_service_val {
330
330
struct bt_gatt_include {
331
331
/** Service UUID. */
332
332
const struct bt_uuid * uuid ;
333
- /** Service start handle. */
333
+ /** Starting attribute handle for included service . */
334
334
uint16_t start_handle ;
335
- /** Service end handle. */
335
+ /** Ending attribute handle for included service . */
336
336
uint16_t end_handle ;
337
337
};
338
338
@@ -633,8 +633,8 @@ typedef uint8_t (*bt_gatt_attr_func_t)(const struct bt_gatt_attr *attr,
633
633
*
634
634
* Iterate attributes in the given range matching given UUID and/or data.
635
635
*
636
- * @param start_handle Start handle.
637
- * @param end_handle End handle.
636
+ * @param start_handle Starting attribute handle.
637
+ * @param end_handle Ending attribute handle.
638
638
* @param uuid UUID to match, passing NULL skips UUID matching.
639
639
* @param attr_data Attribute data to match, passing NULL skips data matching.
640
640
* @param num_matches Number matches, passing 0 makes it unlimited.
@@ -651,8 +651,8 @@ void bt_gatt_foreach_attr_type(uint16_t start_handle, uint16_t end_handle,
651
651
*
652
652
* Iterate attributes in the given range.
653
653
*
654
- * @param start_handle Start handle.
655
- * @param end_handle End handle.
654
+ * @param start_handle Starting attribute handle.
655
+ * @param end_handle Ending attribute handle.
656
656
* @param func Callback function.
657
657
* @param user_data Data to pass to the callback.
658
658
*/
@@ -1657,15 +1657,30 @@ struct bt_gatt_discover_params {
1657
1657
struct {
1658
1658
/** Include service attribute declaration handle */
1659
1659
uint16_t attr_handle ;
1660
- /** Included service start handle */
1660
+ /** Starting attribute handle for included service */
1661
1661
uint16_t start_handle ;
1662
- /** Included service end handle */
1662
+ /** Ending attribute handle for included service */
1663
1663
uint16_t end_handle ;
1664
1664
} _included ;
1665
- /** Discover start handle */
1665
+ /** Starting attribute handle to begin discovery
1666
+ *
1667
+ * @note When discovery begins in @ref bt_conn_cb.connected
1668
+ * callback this is typically set to
1669
+ * @ref BT_ATT_FIRST_ATTRIBUTE_HANDLE. During discovery
1670
+ * process this should be set to the next handle value of
1671
+ * the recently discovered attribute (e.g.
1672
+ * @ref bt_gatt_attr.handle + 1).
1673
+ * During iterative discovery of attributes by service types,
1674
+ * this handle is incremented internally by stack.
1675
+ */
1666
1676
uint16_t start_handle ;
1667
1677
};
1668
- /** Discover end handle */
1678
+ /** Ending attribute handle to stop discovery at
1679
+ *
1680
+ * @note When discovery begins in @ref bt_conn_cb.connected
1681
+ * callback this is typically set to
1682
+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE
1683
+ */
1669
1684
uint16_t end_handle ;
1670
1685
/** Discover type */
1671
1686
uint8_t type ;
@@ -1772,9 +1787,30 @@ struct bt_gatt_read_params {
1772
1787
bool variable ;
1773
1788
} multiple ;
1774
1789
struct {
1775
- /** First requested handle number. */
1790
+ /** First requested attribute handle number.
1791
+ *
1792
+ * @note The starting handle is set to the starting
1793
+ * point of the range over which this read should
1794
+ * be performed. For example, this could be set to
1795
+ * @ref BT_ATT_FIRST_ATTRIBUTE_HANDLE to set the
1796
+ * starting point of the range at the beginning of
1797
+ * the GATT database.
1798
+ *
1799
+ * @note This value is also automatically
1800
+ * incremented by the stack after processing each
1801
+ * matching handle-value pair returned by the
1802
+ * server.
1803
+ */
1776
1804
uint16_t start_handle ;
1777
- /** Last requested handle number. */
1805
+ /** Last requested attribute handle number.
1806
+ *
1807
+ * @note The ending handle is set to the ending
1808
+ * point of the range over which this read should
1809
+ * be performed. For example, this could be set to
1810
+ * @ref BT_ATT_LAST_ATTRIBUTE_HANDLE to set the
1811
+ * ending point of the range at the end of the GATT
1812
+ * database.
1813
+ */
1778
1814
uint16_t end_handle ;
1779
1815
/** 2 or 16 octet UUID. */
1780
1816
const struct bt_uuid * uuid ;
@@ -1789,7 +1825,7 @@ struct bt_gatt_read_params {
1789
1825
1790
1826
/** @brief Read Attribute Value by handle
1791
1827
*
1792
- * This procedure read the attribute value and return it to the callback.
1828
+ * This procedure reads the attribute value and returns it to the callback.
1793
1829
*
1794
1830
* When reading attributes by UUID the callback can be called multiple times
1795
1831
* depending on how many instances of given the UUID exists with the
0 commit comments