const char * myqtt_conn_get_username ( MyQttConn conn)

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

Parameters
connThe connection where the operation takes place.
Returns
The username used or NULL if the CONNECT phase didn't provide a username. The function also reports NULL when conn reference received is NULL.