forked from Krautspace/doorstatus
Refactored config.h: converted #defines in constants
This commit is contained in:
parent
d9cf4695b8
commit
c2fd6ec7b0
1 changed files with 7 additions and 7 deletions
|
@ -3,16 +3,16 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* endpoint */
|
/* endpoint */
|
||||||
#define SERVER_URL "status.kraut.space"
|
constexpr static inline char const SERVER_URL[] = "status.kraut.space";
|
||||||
#define SERVER_PORT 10001
|
constexpr static inline uint16_t SERVER_PORT = 10001;
|
||||||
|
|
||||||
/* serial interface settings */
|
/* serial interface settings */
|
||||||
#define BAUD_RATE 115200
|
constexpr static inline unsigned long BAUD_RATE = 115200;
|
||||||
#define DEBUG true
|
constexpr static inline bool DEBUG = true;
|
||||||
|
|
||||||
/* frequence to read the pin */
|
/* frequence to read the pin */
|
||||||
#define FREQUENCY 5000
|
constexpr static inline unsigned long FREQUENCY = 5000;
|
||||||
|
|
||||||
/* time server settings */
|
/* time server settings */
|
||||||
#define NTP_URL "pool.ntp.org"
|
constexpr static inline char const NTP_URL[] = "pool.ntp.org";
|
||||||
#define TZ_STRING "CET-1CDT,M3.5.0,M10.5.0/3"
|
constexpr static inline char const TZ_STRING[] = "CET-1CEST,M3.5.0,M10.5.0/3";
|
Loading…
Reference in a new issue