Skip to content

Commit

Permalink
net: lib: mqtt_helper: Fix mqtt_helper_connect() documentation
Browse files Browse the repository at this point in the history
Add information about positive return value in case of DNS error.

Signed-off-by: Jan Tore Guggedal <[email protected]>
  • Loading branch information
jtguggedal authored and jukkar committed Dec 11, 2024
1 parent ffa08e9 commit baaa9aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/net/mqtt_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ int mqtt_helper_init(struct mqtt_helper_cfg *cfg);
*
* @retval 0 if successful.
* @retval -EOPNOTSUPP if operation is not supported in the current state.
* @return A positive error code in case of DNS error, corresponding to ``getaddrinfo()`` return
* values.
* @return Otherwise a negative error code.
*/
int mqtt_helper_connect(struct mqtt_helper_conn_params *conn_params);
Expand Down

0 comments on commit baaa9aa

Please sign in to comment.