Refactored config.h: converted #defines in constants

This commit is contained in:
Ludwig Behm 2023-10-24 01:07:23 +02:00
parent d9cf4695b8
commit c2fd6ec7b0
Signed by: l.behm
GPG key ID: D344835D63B89384

View file

@ -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";