From 2458e6aa1658b2cc5b6349b89f1276873554ad6f Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Mon, 28 Oct 2024 18:03:34 +0100 Subject: Verschiebe die Konfiguration nach 'src' --- config.h.in | 39 +++++++++++++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 8 deletions(-) (limited to 'config.h.in') diff --git a/config.h.in b/config.h.in index a622aad..0cf0d70 100644 --- a/config.h.in +++ b/config.h.in @@ -1,10 +1,33 @@ #pragma once -#define CLIENT_ID "my-client-id" -#define HOST "localhost" -#define PORT 1883 -#define USERNAME "user" -#define PASSWORD "password" -#define TOPIC "topic" -#define KEEPALIVE 10 -#define WAIT_UNTIL_RECONNECT 10 +#ifndef CLIENT_ID +# define CLIENT_ID "my-client-id" +#endif + +#ifndef HOST +# define HOST "localhost" +#endif + +#ifndef PORT +# define PORT 1883 +#endif + +#ifndef USERNAME +# define USERNAME "user" +#endif + +#ifndef PASSWORD +# define PASSWORD "password" +#endif + +#ifndef TOPIC +# define TOPIC "topic" +#endif + +#ifndef KEEPALIVE +# define KEEPALIVE 10 +#endif + +#ifndef WAIT_UNTIL_RECONNECT +# define WAIT_UNTIL_RECONNECT 10 +#endif -- cgit v1.3