From c2fd6ec7b0db9436e42a90f21a95231675d76687 Mon Sep 17 00:00:00 2001 From: Ludwig Behm Date: Tue, 24 Oct 2023 01:07:23 +0200 Subject: [PATCH] Refactored config.h: converted #defines in constants --- source/client/nodemcu/statusclient/config.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/source/client/nodemcu/statusclient/config.h b/source/client/nodemcu/statusclient/config.h index b078888..4281b2e 100644 --- a/source/client/nodemcu/statusclient/config.h +++ b/source/client/nodemcu/statusclient/config.h @@ -3,16 +3,16 @@ */ /* endpoint */ -#define SERVER_URL "status.kraut.space" -#define SERVER_PORT 10001 +constexpr static inline char const SERVER_URL[] = "status.kraut.space"; +constexpr static inline uint16_t SERVER_PORT = 10001; /* serial interface settings */ -#define BAUD_RATE 115200 -#define DEBUG true +constexpr static inline unsigned long BAUD_RATE = 115200; +constexpr static inline bool DEBUG = true; /* frequence to read the pin */ -#define FREQUENCY 5000 +constexpr static inline unsigned long FREQUENCY = 5000; /* time server settings */ -#define NTP_URL "pool.ntp.org" -#define TZ_STRING "CET-1CDT,M3.5.0,M10.5.0/3" +constexpr static inline char const NTP_URL[] = "pool.ntp.org"; +constexpr static inline char const TZ_STRING[] = "CET-1CEST,M3.5.0,M10.5.0/3"; \ No newline at end of file