Skip to content

File Debug.h

FileList > firmware > 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 2
Controls debug information for acquisition and averaging loop.
define DEBUG_DS3231M 2
Controls 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 3
Global debug level.
define DEBUG_NBIOT 2
Controls debug information for NB-IoT module.
define DEBUG_PRINTF_BUFFER_SIZE 256
Adjust size according to expected maximum message length.
define DEBUG_SEN5X 2
Controls debug information for SEN5X sensor.
define DEBUG_T6793 2
Controls 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 1
Uncomment 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.

char debug_printf_buffer[DEBUG_PRINTF_BUFFER_SIZE];


Macro Definition Documentation

define DEBUG_ALARMA

Controls debug information for acquisition and averaging loop.

#define DEBUG_ALARMA `2`


define DEBUG_DS3231M

Controls debug information for RTC.

#define DEBUG_DS3231M `2`


define DEBUG_ERROR

DEBUG_LEVEL >= 1.

#define DEBUG_ERROR (
    format,
    ...
) `/* multi line expression */`


define DEBUG_INFO

DEBUG_LEVEL >= 3.

#define DEBUG_INFO (
    format,
    ...
) `/* multi line expression */`


define DEBUG_LEVEL

Global debug level.

#define DEBUG_LEVEL `3`


define DEBUG_NBIOT

Controls debug information for NB-IoT module.

#define DEBUG_NBIOT `2`


define DEBUG_PRINTF_BUFFER_SIZE

Adjust size according to expected maximum message length.

#define DEBUG_PRINTF_BUFFER_SIZE `256`


define DEBUG_SEN5X

Controls debug information for SEN5X sensor.

#define DEBUG_SEN5X `2`


define DEBUG_T6793

Controls debug information for T6793K sensor (CO2).

#define DEBUG_T6793 `2`


define DEBUG_VERBOSE

DEBUG_LEVEL >= 4.

#define DEBUG_VERBOSE (
    format,
    ...
) `/* multi line expression */`


define DEBUG_WARN

DEBUG_LEVEL >= 2.

#define DEBUG_WARN (
    format,
    ...
) `/* multi line expression */`


define TEST_MINUTAL

Uncomment the following line to enable per-minute average transmission.

#define TEST_MINUTAL `1`

Useful for debugging message sending or sensor communication.



The documentation for this class was generated from the following file firmware/Debug.h