diff options
| author | Thomas Schmucker <ts@its1.de> | 2024-10-29 22:34:23 +0100 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2024-10-29 22:34:23 +0100 |
| commit | 868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe (patch) | |
| tree | e992bb530f623e53df9fe15ef1cdbdfc3128092a /include/mqtt.h | |
| parent | 0714998ef54e8c1a46af7ec48698faa3abdf457a (diff) | |
| download | use-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.tar.gz use-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.tar.bz2 use-mosquitto-868d0a1ecbfbcd1f04b5c03403d6cffb439ce8fe.zip | |
Verschiebe MQTT Code in ein eigenes Modul
Diffstat (limited to 'include/mqtt.h')
| -rw-r--r-- | include/mqtt.h | 16 |
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 | |||
| 6 | struct 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 | |||
| 14 | void run(struct mosquitto *client, const char *topics[], const volatile bool *quit); | ||
| 15 | |||
| 16 | void shutdown(struct mosquitto *client); | ||
