aboutsummaryrefslogtreecommitdiffstats
path: root/analysis/rtt/README.txt
diff options
context:
space:
mode:
authorFilip Wandzio <contact@philw.dev>2025-09-05 03:30:24 +0200
committerFilip Wandzio <contact@philw.dev>2025-09-05 03:30:24 +0200
commit01713bbe20d2cf5aafbe5eb32721d3e4fc5823d8 (patch)
tree33748d0019e3939bd0daf50940407e51d4325a8f /analysis/rtt/README.txt
parent1ba21da6cbc63c0c549fb92731e25bedc482eb51 (diff)
downloade1-01713bbe20d2cf5aafbe5eb32721d3e4fc5823d8.tar.gz
e1-01713bbe20d2cf5aafbe5eb32721d3e4fc5823d8.zip
Standarize the project directory for monorepo-like developer experience
Move the clang formatter to the root of the three so all nested projects could use it Provide README for all other projects Refactor the code in rtt agregator Signed-off-by: Filip Wandzio <contact@philw.dev>
Diffstat (limited to 'analysis/rtt/README.txt')
-rw-r--r--analysis/rtt/README.txt40
1 files changed, 40 insertions, 0 deletions
diff --git a/analysis/rtt/README.txt b/analysis/rtt/README.txt
new file mode 100644
index 0000000..4a45e6d
--- /dev/null
+++ b/analysis/rtt/README.txt
@@ -0,0 +1,40 @@
1Project: MQTT RTT and Throughput Logger
2
3Description:
4This project implements an MQTT client that connects to a broker, subscribes to a topic, and logs message round-trip time (RTT) and throughput statistics to a CSV file and standard output. The logger measures the time difference between message sent timestamps and received timestamps to calculate RTT and maintains a sliding window of message times to estimate throughput in messages per second.
5
6Files:
7
8mqtt_client.h / mqtt_client.c: MQTT client wrapper using the Mosquitto library.
9
10logger.h / logger.c: Logger module for handling incoming MQTT messages and logging RTT/throughput.
11
12main.c: Entry point initializing the MQTT client and logger, then running the MQTT client loop.
13
14Dependencies:
15
16Mosquitto library (libmosquitto)
17
18Standard C libraries (stdio, stdlib, string, sys/time, time)
19
20Build Instructions:
21
22Look at the Dockerfile and Makefile to find out.
23Usage:
24
25Configure MQTT broker address, port, and topic in main.c.
26
27Run the compiled executable.
28
29The program connects to the broker, subscribes to the specified topic, and logs RTT and throughput stats to a CSV file.
30
31Output is also printed to the console.
32
33Notes:
34
35The logger expects the payload of received messages to contain a timestamp string representing the sent time in milliseconds.
36
37The program uses blocking call mosquitto_loop_forever to run the MQTT network loop.
38
39Contact:
40For questions contact Filip Wandzio at contact@philw.dev