summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-10-28 18:03:34 +0100
committerThomas Schmucker <ts@its1.de>2024-10-28 18:03:34 +0100
commit2458e6aa1658b2cc5b6349b89f1276873554ad6f (patch)
tree751ca4be139d1e0ce28d4300eb381ed4843fa39f /config.h.in
parent8859b6b8c78beca455e1273b5a31f09e165eed03 (diff)
downloaduse-mosquitto-2458e6aa1658b2cc5b6349b89f1276873554ad6f.tar.gz
use-mosquitto-2458e6aa1658b2cc5b6349b89f1276873554ad6f.tar.bz2
use-mosquitto-2458e6aa1658b2cc5b6349b89f1276873554ad6f.zip
Verschiebe die Konfiguration nach 'src'
Diffstat (limited to 'config.h.in')
-rw-r--r--config.h.in39
1 files changed, 31 insertions, 8 deletions
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 @@
1#pragma once 1#pragma once
2 2
3#define CLIENT_ID "my-client-id" 3#ifndef CLIENT_ID
4#define HOST "localhost" 4# define CLIENT_ID "my-client-id"
5#define PORT 1883 5#endif
6#define USERNAME "user" 6
7#define PASSWORD "password" 7#ifndef HOST
8#define TOPIC "topic" 8# define HOST "localhost"
9#define KEEPALIVE 10 9#endif
10#define WAIT_UNTIL_RECONNECT 10 10
11#ifndef PORT
12# define PORT 1883
13#endif
14
15#ifndef USERNAME
16# define USERNAME "user"
17#endif
18
19#ifndef PASSWORD
20# define PASSWORD "password"
21#endif
22
23#ifndef TOPIC
24# define TOPIC "topic"
25#endif
26
27#ifndef KEEPALIVE
28# define KEEPALIVE 10
29#endif
30
31#ifndef WAIT_UNTIL_RECONNECT
32# define WAIT_UNTIL_RECONNECT 10
33#endif