@@ -93,12 +93,13 @@ void bt_conn_foreach(int type, void (*func)(struct bt_conn *conn, void *data),
93
93
*
94
94
* Look up an existing connection based on the remote address.
95
95
*
96
+ * The caller gets a new reference to the connection object which must be
97
+ * released with bt_conn_unref() once done using the object.
98
+ *
96
99
* @param id Local identity (in most cases BT_ID_DEFAULT).
97
100
* @param peer Remote address.
98
101
*
99
- * @return Connection object or NULL if not found. The caller gets a
100
- * new reference to the connection object which must be released with
101
- * bt_conn_unref() once done using the object.
102
+ * @return Connection object or NULL if not found.
102
103
*/
103
104
struct bt_conn * bt_conn_lookup_addr_le (u8_t id , const bt_addr_le_t * peer );
104
105
@@ -280,7 +281,9 @@ int bt_conn_disconnect(struct bt_conn *conn, u8_t reason);
280
281
/** @brief Initiate an LE connection to a remote device.
281
282
*
282
283
* Allows initiate new LE link to remote peer using its address.
283
- * Returns a new reference that the the caller is responsible for managing.
284
+ *
285
+ * The caller gets a new reference to the connection object which must be
286
+ * released with bt_conn_unref() once done using the object.
284
287
*
285
288
* This uses the General Connection Establishment procedure.
286
289
*
@@ -345,7 +348,8 @@ int bt_le_set_auto_conn(const bt_addr_le_t *addr,
345
348
*
346
349
* The advertising may be canceled with bt_conn_disconnect().
347
350
*
348
- * Returns a new reference that the the caller is responsible for managing.
351
+ * The caller gets a new reference to the connection object which must be
352
+ * released with bt_conn_unref() once done using the object.
349
353
*
350
354
* @param peer Remote address.
351
355
* @param param Directed advertising parameters.
@@ -1023,7 +1027,9 @@ struct bt_br_conn_param {
1023
1027
/** @brief Initiate an BR/EDR connection to a remote device.
1024
1028
*
1025
1029
* Allows initiate new BR/EDR link to remote peer using its address.
1026
- * Returns a new reference that the the caller is responsible for managing.
1030
+ *
1031
+ * The caller gets a new reference to the connection object which must be
1032
+ * released with bt_conn_unref() once done using the object.
1027
1033
*
1028
1034
* @param peer Remote address.
1029
1035
* @param param Initial connection parameters.
@@ -1036,7 +1042,9 @@ struct bt_conn *bt_conn_create_br(const bt_addr_t *peer,
1036
1042
/** @brief Initiate an SCO connection to a remote device.
1037
1043
*
1038
1044
* Allows initiate new SCO link to remote peer using its address.
1039
- * Returns a new reference that the the caller is responsible for managing.
1045
+ *
1046
+ * The caller gets a new reference to the connection object which must be
1047
+ * released with bt_conn_unref() once done using the object.
1040
1048
*
1041
1049
* @param peer Remote address.
1042
1050
*
0 commit comments