EnigmaIOT  0.9.3
Secure sensor and gateway platform based on ESP8266 and ESP32
Macros
debug.h File Reference

Auxiliary functions for debugging over Serial. More...

#include <Arduino.h>
#include "EnigmaIoTconfig.h"

Go to the source code of this file.

Macros

#define NO_DEBUG   0
 Debug level that will give no debug output. More...
 
#define ERROR   1
 Debug level that will give error messages. More...
 
#define WARN   2
 Debug level that will give error and warning messages. More...
 
#define INFO   3
 Debug level that will give error, warning and info messages. More...
 
#define DBG   4
 Debug level that will give error, warning,info AND dbg messages. More...
 
#define VERBOSE   5
 Debug level that will give all defined messages. More...
 

Detailed Description

Auxiliary functions for debugging over Serial.

Format used on debug functions is the same as printf(). Check source code for usage examples Debug calls will be enabled or disabled automatically before compiling according defined DEBUG_LEVEL.

If DEBUG_ESP_PORT is not defined library will give no debug output at all

Version
0.9.3
Date
14/07/2020
Author
German Martin

Definition in file debug.h.

Macro Definition Documentation

◆ DBG

#define DBG   4

Debug level that will give error, warning,info AND dbg messages.

Definition at line 29 of file debug.h.

◆ ERROR

#define ERROR   1

Debug level that will give error messages.

Definition at line 26 of file debug.h.

◆ INFO

#define INFO   3

Debug level that will give error, warning and info messages.

Definition at line 28 of file debug.h.

◆ NO_DEBUG

#define NO_DEBUG   0

Debug level that will give no debug output.

Definition at line 25 of file debug.h.

◆ VERBOSE

#define VERBOSE   5

Debug level that will give all defined messages.

Definition at line 30 of file debug.h.

◆ WARN

#define WARN   2

Debug level that will give error and warning messages.

Definition at line 27 of file debug.h.