summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/mqtt.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/include/mqtt.h b/include/mqtt.h
new file mode 100644
index 0000000..fa7df1c
--- /dev/null
+++ b/include/mqtt.h
@@ -0,0 +1,16 @@
1#pragma once
2
3// Project
4#include <mosquitto.h>
5
6struct mosquitto *connect(const char *clientid, // NOLINT
7 const char *username, // NOLINT
8 const char *password, // NOLINT
9 const char *hostname, // NOLINT
10 int port,
11 void callback(struct mosquitto *, void *, const struct mosquitto_message *),
12 void *userdata);
13
14void run(struct mosquitto *client, const char *topics[], const volatile bool *quit);
15
16void shutdown(struct mosquitto *client);