diff options
| author | Filip Wandzio <contact@philw.dev> | 2025-09-04 22:25:39 +0200 |
|---|---|---|
| committer | Filip Wandzio <contact@philw.dev> | 2025-09-04 22:25:39 +0200 |
| commit | 1ba21da6cbc63c0c549fb92731e25bedc482eb51 (patch) | |
| tree | ddf6fc2259a2495f8de336a07873cc3c6796785e /analysis/rtt/src/mqtt_client.h | |
| parent | e00f3a9ede1b8e46b480bd68daf48da0bb08acae (diff) | |
| download | e1-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.h | 16 |
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 | |||
| 7 | typedef struct { | ||
| 8 | struct mosquitto *mosq; | ||
| 9 | } mqtt_client_t; | ||
| 10 | |||
| 11 | int mqtt_client_init(mqtt_client_t *client, const char *broker_address, | ||
| 12 | int port, const char *topic); | ||
| 13 | void mqtt_client_cleanup(mqtt_client_t *client); | ||
| 14 | void mqtt_client_loop(mqtt_client_t *client); | ||
| 15 | |||
| 16 | #endif // MQTT_CLIENT_H | ||
