MyQttConnAckTypes myqtt_conn_get_last_err ( MyQttConn conn)

After a myqtt_conn_new you can call this function to get the last error reported.

Parameters
connThe connection where the last error is being queried.
Returns
The error code (see MyQttConnAckTypes for more information) or MYQTT_CONNACK_ACCEPTED if the connection went ok.

References MYQTT_CONNACK_UNKNOWN_ERR.