const char * myqtt_conn_get_password ( MyQttConn conn)

Allows to get the password used during CONNECT phase on the provided connection.

connThe connection where the operation takes place.
The password used or NULL if the CONNECT phase didn't provide a password.

SECURITY NOTE: For security reasons, the function won't return the password (if any) after the CONNECT method completes. The function also reports NULL when conn reference received is NULL.

IMPORTANT NOTE: In the case the function returns a value, it shouldn't be used after MyQttOnConnectHandler is called (if defined that handler) and/or after the connection is completely accepted.