nRF5 SDK for Mesh v3.2.0  08c60f6
Mesh app utility functions

Macros

#define ERROR_CHECK(__error_code)
 
#define RETURN_ON_ERROR(status)
 

Functions

void app_error_handler (uint32_t error_code, uint32_t line_number, const uint8_t *filename)
 
void mesh_app_uuid_print (const uint8_t *p_uuid)
 Prints the given UUID in a readable format. More...
 

Detailed Description

Utilities for use in Mesh applications and examples.

Macro Definition Documentation

◆ ERROR_CHECK

#define ERROR_CHECK (   __error_code)
Value:
do \
{ \
const uint32_t __local_code = (__error_code); \
if (__local_code != NRF_SUCCESS) \
{ \
app_error_handler(__local_code, __LINE__, (const uint8_t *) __FILE__); \
} \
} while (0)

Definition at line 58 of file mesh_app_utils.h.

◆ RETURN_ON_ERROR

#define RETURN_ON_ERROR (   status)
Value:
do { \
uint32_t result = status; \
if (result != NRF_SUCCESS) \
{ \
return result; \
} \
} while (0);

Definition at line 68 of file mesh_app_utils.h.

Function Documentation

◆ mesh_app_uuid_print()

void mesh_app_uuid_print ( const uint8_t *  p_uuid)

Prints the given UUID in a readable format.

This function will not print anything if NULL pointer is provided as an input parameter.

Parameters
[in]p_uuidPointer to 16-byte array that represents a UUID.