Skip to content

Commit baaa9aa

Browse files
jtguggedaljukkar
authored andcommitted
net: lib: mqtt_helper: Fix mqtt_helper_connect() documentation
Add information about positive return value in case of DNS error. Signed-off-by: Jan Tore Guggedal <[email protected]>
1 parent ffa08e9 commit baaa9aa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/net/mqtt_helper.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ int mqtt_helper_init(struct mqtt_helper_cfg *cfg);
103103
*
104104
* @retval 0 if successful.
105105
* @retval -EOPNOTSUPP if operation is not supported in the current state.
106+
* @return A positive error code in case of DNS error, corresponding to ``getaddrinfo()`` return
107+
* values.
106108
* @return Otherwise a negative error code.
107109
*/
108110
int mqtt_helper_connect(struct mqtt_helper_conn_params *conn_params);

0 commit comments

Comments
 (0)