summaryrefslogtreecommitdiff
path: root/config.h.in
diff options
context:
space:
mode:
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