summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2024-10-29 22:34:23 +0100
committerThomas Schmucker <ts@its1.de>2024-10-29 22:34:23 +0100
commit868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe (patch)
treee992bb530f623e53df9fe15ef1cdbdfc3128092a /include
parent0714998ef54e8c1a46af7ec48698faa3abdf457a (diff)
downloaduse-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.tar.gz
use-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.tar.bz2
use-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.zip
Verschiebe MQTT Code in ein eigenes Modul
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);