nabto_device_error_get_string()

DESCRIPTION

Get the error code as a string. The returned pointer must not be freed.

E.g. NABTO_DEVICE_EC_OK is translated to the string “NABTO_DEVICE_EC_OK”

DECLARATION

NABTO_DEVICE_DECL_PREFIX const char* NABTO_DEVICE_API
nabto_device_error_get_string(NabtoDeviceError error)

PARAMETERS

error:
[in] The error code.

RETURNS

the NULL terminated string representation.