AWS IoT for ESP32 v1.0.0
An ESP-IDF based solution
lib_print.h File Reference

Print library header file. More...

Go to the source code of this file.

Functions

void print_setLogLevel (menusLibModule_et module_e, logLevels_et logLevel_e)
 Set the log level of a given library file. More...
 
void print_setDefaultLogLevel (uint8_t maxModules_u8, logLevels_et *pLogLevels_e)
 Set the given log levels as default. More...
 
void print_serial (menusLibModule_et module_e, logLevels_et logLevel_e, const char *pFunNameStr, const char *pArgListStr,...)
 Print the log message on serial terminal. More...
 
bool print_isLogsEnabled ()
 Check if logs are enabled. More...
 
void print_enableLogs ()
 Enable logs. More...
 
void print_disableLogs ()
 Disable logs. More...
 

Detailed Description

Print library header file.

Function Documentation

◆ print_disableLogs()

void print_disableLogs ( )

Disable logs.

Parameters
none
Returns
none

◆ print_enableLogs()

void print_enableLogs ( )

Enable logs.

Parameters
none
Returns
none

◆ print_isLogsEnabled()

bool print_isLogsEnabled ( )

Check if logs are enabled.

Parameters
none
Returns
Status of logs is enabled or not
Return values
trueif logs are enabled
falseif logs are not enabled

◆ print_serial()

void print_serial ( menusLibModule_et  module_e,
logLevels_et  logLevel_e,
const char *  pFunNameStr,
const char *  pArgListStr,
  ... 
)

Print the log message on serial terminal.

Parameters
module_eLibrary module
logLevel_eLog level
pArgListStrList of arguments
Returns
none

◆ print_setDefaultLogLevel()

void print_setDefaultLogLevel ( uint8_t  maxModules_u8,
logLevels_et pLogLevels_e 
)

Set the given log levels as default.

Parameters
maxModules_u8Maximum number of modules
pLogLevels_ePointer to Log levels
Returns
none

◆ print_setLogLevel()

void print_setLogLevel ( menusLibModule_et  module_e,
logLevels_et  logLevel_e 
)

Set the log level of a given library file.

Parameters
module_eThe library file for which log level must be set
logLevel_eDesired log level
Returns
none