nRF5 SDK v17.1.0
Modules | Functions
Error code to string converter

Module for converting error code into a printable string. More...

Modules

 Library for converting error code to string. configuration
 

Functions

char const * nrf_strerror_get (ret_code_t code)
 Function for getting a printable error string. More...
 
char const * nrf_strerror_find (ret_code_t code)
 Function for finding a printable error string. More...
 

Detailed Description

Module for converting error code into a printable string.

Function Documentation

char const* nrf_strerror_find ( ret_code_t  code)

Function for finding a printable error string.

This function gets the error string in the same way as nrf_strerror_get, but if the string is not found, it returns NULL.

Parameters
codeError code to convert.
Returns
Pointer to the printable string. If the string is not found, NULL is returned.
char const* nrf_strerror_get ( ret_code_t  code)

Function for getting a printable error string.

Parameters
codeError code to convert.
Note
This function cannot fail. For the function that may fail with error translation, see nrf_strerror_find.
Returns
Pointer to the printable string. If the string is not found, it returns a simple string that says that the error is unknown.

Documentation feedback | Developer Zone | Subscribe | Updated