aboutsummaryrefslogtreecommitdiffstats
path: root/analysis/rtt/src/mqtt_client.h
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2025-09-04 22:25:39 +0200
committerFilip Wandzio <contact@philw.dev>2025-09-04 22:25:39 +0200
commit1ba21da6cbc63c0c549fb92731e25bedc482eb51 (patch)
treeddf6fc2259a2495f8de336a07873cc3c6796785e /analysis/rtt/src/mqtt_client.h
parente00f3a9ede1b8e46b480bd68daf48da0bb08acae (diff)
downloade1-1ba21da6cbc63c0c549fb92731e25bedc482eb51.tar.gz
e1-1ba21da6cbc63c0c549fb92731e25bedc482eb51.zip
Unify the directory, add new analysis methods, unify the code style
Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'analysis/rtt/src/mqtt_client.h')
-rw-r--r--analysis/rtt/src/mqtt_client.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/analysis/rtt/src/mqtt_client.h b/analysis/rtt/src/mqtt_client.h
new file mode 100644
index 0000000..781e742
--- /dev/null
+++ b/analysis/rtt/src/mqtt_client.h
@@ -0,0 +1,16 @@
1
2#ifndef MQTT_CLIENT_H
3#define MQTT_CLIENT_H
4
5#include <mosquitto.h>
6
7typedef struct {
8 struct mosquitto *mosq;
9} mqtt_client_t;
10
11int mqtt_client_init(mqtt_client_t *client, const char *broker_address,
12 int port, const char *topic);
13void mqtt_client_cleanup(mqtt_client_t *client);
14void mqtt_client_loop(mqtt_client_t *client);
15
16#endif // MQTT_CLIENT_H