LSH-Core
A robust C++ framework for Arduino-based home automation nodes
Loading...
Searching...
No Matches
debug.hpp
Go to the documentation of this file.
1
21#ifndef LSHCORE_UTIL_CONSTANTS_DEBUG_HPP
22#define LSHCORE_UTIL_CONSTANTS_DEBUG_HPP
23
24#include <stdint.h>
25
29namespace constants
30{
35 namespace debugConfigs
36 {
41#ifndef CONFIG_DEBUG_SERIAL_BAUD
42 static constexpr const uint32_t DEBUG_SERIAL_BAUD = 115200U;
43#else
44 static constexpr const uint32_t DEBUG_SERIAL_BAUD = CONFIG_DEBUG_SERIAL_BAUD;
45#endif
46 } // namespace debugConfigs
47
48} // namespace constants
49
50#ifdef LSH_DEBUG
51#include <avr/pgmspace.h>
56namespace dStr
57{
58 constexpr const char SPACE[] PROGMEM = " "; // NOLINT
59 constexpr const char COLON_SPACE[] PROGMEM = ": "; // NOLINT
60 constexpr const char POINT[] PROGMEM = "."; // NOLINT
61 constexpr const char DIVIDER[] PROGMEM = "||"; // NOLINT
62
63 constexpr const char FUNCTION[] PROGMEM = "Function"; // NOLINT
64 constexpr const char METHOD[] PROGMEM = "Method"; // NOLINT
65 constexpr const char CALLED[] PROGMEM = "called"; // NOLINT
66 constexpr const char FREE_MEMORY[] PROGMEM = "Free memory"; // NOLINT
67 constexpr const char COMPILED_BY_GCC[] PROGMEM = "Compiled by GCC"; // NOLINT
68 constexpr const char EXEC_TIME[] PROGMEM = "Exec time"; // NOLINT
69 constexpr const char IS_CONNECTED[] PROGMEM = "Is connected"; // NOLINT
70 constexpr const char CLICKABLE[] PROGMEM = "Clickable"; // NOLINT
71 constexpr const char SHORT[] PROGMEM = "short"; // NOLINT
72 constexpr const char LONG[] PROGMEM = "long"; // NOLINT
73 constexpr const char SUPER_LONG[] PROGMEM = "super long"; // NOLINT
74 constexpr const char CLICKED[] PROGMEM = "clicked"; // NOLINT
75 constexpr const char ESP_EXIT_CODE[] PROGMEM = "ESP exit code"; // NOLINT
76 constexpr const char MESSAGE_RECEIVED_AT_TIME[] PROGMEM = "Message received at time"; // NOLINT
77 constexpr const char ACTUATOR[] PROGMEM = "Actuator"; // NOLINT
78 constexpr const char DOES_NOT_EXIST[] PROGMEM = "does not exist"; // NOLINT
79 constexpr const char JSON_DOC_IS_NULL[] PROGMEM = "JsonDoc is NULL"; // NOLINT
80 constexpr const char JSON_RECEIVED[] PROGMEM = "JSON received"; // NOLINT
81 constexpr const char JSON_SENT[] PROGMEM = "JSON sent"; // NOLINT
82 constexpr const char SENDING_PING_TO_ESP[] PROGMEM = "Sending ping to ESP"; // NOLINT
83 constexpr const char SENDING_BOOT_TO_ESP[] PROGMEM = "Sending boot to ESP"; // NOLINT
84 constexpr const char UUID[] PROGMEM = "UUID"; // NOLINT
85 constexpr const char INDEX[] PROGMEM = "Index"; // NOLINT
86 constexpr const char EXPIRED[] PROGMEM = "Expired"; // NOLINT
87 constexpr const char NET_BUTTONS_NOT_EMPTY[] PROGMEM = "Network buttons not empty, checking..."; // NOLINT
88 constexpr const char CLICK[] PROGMEM = "Click"; // NOLINT
89 constexpr const char TYPE[] PROGMEM = "type"; // NOLINT
90 constexpr const char FOR[] PROGMEM = "for"; // NOLINT
91 constexpr const char ITERATIONS[] PROGMEM = "iterations"; // NOLINT
92} // namespace dStr
93
94#endif // LSH_DEBUG
95
96#endif // LSHCORE_UTIL_CONSTANTS_DEBUG_HPP
namespace for constants.
Definition config.hpp:33