MQTT API Reference
MQTT 3.1.1 client library
IotMqtt_strerror

Returns a string that describes an IotMqttError_t.

const char * IotMqtt_strerror( IotMqttError_t status );

Like the POSIX's strerror, this function returns a string describing a return code. In this case, the return code is an MQTT library error code, status.

The string returned by this function MUST be treated as read-only: any attempt to modify its contents may result in a crash. Therefore, this function is limited to usage in logging.

Parameters
[in]statusThe status to describe.
Returns
A read-only string that describes status.
Warning
The string returned by this function must never be modified.
IotMqttError_t
IotMqttError_t
Return codes of MQTT functions.
Definition: iot_mqtt_types.h:103
IotMqtt_strerror
const char * IotMqtt_strerror(IotMqttError_t status)
Returns a string that describes an IotMqttError_t.
Definition: iot_mqtt_api.c:2036