Returns the name of a am_web_result_t as a string.
#include "am_web.h" AM_WEB_EXPORT const char * am_web_result_num_to_str(am_web_result_t result);
This function takes the following parameter:
One of the following values of the am_web_result_t enumeration as defined:
#include "am_web.h"
typedef enum {
AM_WEB_RESULT_OK, /* access check was OK */
AM_WEB_RESULT_OK_DONE, /* OK and handled (for ex. notification) */
AM_WEB_RESULT_FORBIDDEN, /* access forbidden */
AM_WEB_RESULT_REDIRECT, /* redirected */
AM_WEB_RESULT_ERROR /* internal error */
} am_web_result_t;
This function returns a pointer to the string. For example, AM_WEB_RESULT_OK returns AM_WEB_RESULT_OK. If the result code passed is not recognized, Unknown result code is returned.