const char * myqtt_conn_get_code_to_err ( MyQttConnAckTypes  code)

Allows to get textual error from error code provided.

Parameters
codeThe error code to get textual diagnostics from.
Returns
Textual error or NULL if it fails.

References MYQTT_CONNACK_ACCEPTED, MYQTT_CONNACK_BAD_USERNAME_OR_PASSWORD, MYQTT_CONNACK_CONNECT_TIMEOUT, MYQTT_CONNACK_DEFERRED, MYQTT_CONNACK_IDENTIFIER_REJECTED, MYQTT_CONNACK_NOT_AUTHORIZED, MYQTT_CONNACK_REFUSED, MYQTT_CONNACK_SERVER_UNAVAILABLE, MYQTT_CONNACK_UNABLE_TO_CONNECT, and MYQTT_CONNACK_UNKNOWN_ERR.