File Debug.h
Go to the source code of this file
Header for debug message management. More...
#include <Arduino.h>#include <stdarg.h>#include <stdio.h>
Public Static Attributes
| Type | Name |
|---|---|
| char | debug_printf_buffer Buffer for formatted debug messages. |
Macros
| Type | Name |
|---|---|
| define | DEBUG_ALARMA 2Controls debug information for acquisition and averaging loop. |
| define | DEBUG_DS3231M 2Controls debug information for RTC. |
| define | DEBUG_ERROR (format, ...) /* multi line expression */DEBUG_LEVEL >= 1. |
| define | DEBUG_INFO (format, ...) /* multi line expression */DEBUG_LEVEL >= 3. |
| define | DEBUG_LEVEL 3Global debug level. |
| define | DEBUG_NBIOT 2Controls debug information for NB-IoT module. |
| define | DEBUG_PRINTF_BUFFER_SIZE 256Adjust size according to expected maximum message length. |
| define | DEBUG_SEN5X 2Controls debug information for SEN5X sensor. |
| define | DEBUG_T6793 2Controls debug information for T6793K sensor (CO2). |
| define | DEBUG_VERBOSE (format, ...) /* multi line expression */DEBUG_LEVEL >= 4. |
| define | DEBUG_WARN (format, ...) /* multi line expression */DEBUG_LEVEL >= 2. |
| define | TEST_MINUTAL 1Uncomment the following line to enable per-minute average transmission. |
Detailed Description
Defines a set of macros that allow printing messages to the serial port depending on a debug level set in "Configuracion.h".
Author:
[ALD-DSL/ATARI_RESEARCH_LAB]
Date:
[2024-07-22/2025-10-15]
Version:
1.0
Copyright:
GNU General Public License version 3 or later
Public Static Attributes Documentation
variable debug_printf_buffer
Buffer for formatted debug messages.
Macro Definition Documentation
define DEBUG_ALARMA
Controls debug information for acquisition and averaging loop.
define DEBUG_DS3231M
Controls debug information for RTC.
define DEBUG_ERROR
DEBUG_LEVEL >= 1.
define DEBUG_INFO
DEBUG_LEVEL >= 3.
define DEBUG_LEVEL
Global debug level.
define DEBUG_NBIOT
Controls debug information for NB-IoT module.
define DEBUG_PRINTF_BUFFER_SIZE
Adjust size according to expected maximum message length.
define DEBUG_SEN5X
Controls debug information for SEN5X sensor.
define DEBUG_T6793
Controls debug information for T6793K sensor (CO2).
define DEBUG_VERBOSE
DEBUG_LEVEL >= 4.
define DEBUG_WARN
DEBUG_LEVEL >= 2.
define TEST_MINUTAL
Uncomment the following line to enable per-minute average transmission.
Useful for debugging message sending or sensor communication.
The documentation for this class was generated from the following file firmware/Debug.h