diff options
Diffstat (limited to 'analysis/rtt/README.txt')
| -rw-r--r-- | analysis/rtt/README.txt | 40 |
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 @@ | |||
| 1 | Project: MQTT RTT and Throughput Logger | ||
| 2 | |||
| 3 | Description: | ||
| 4 | This 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 | |||
| 6 | Files: | ||
| 7 | |||
| 8 | mqtt_client.h / mqtt_client.c: MQTT client wrapper using the Mosquitto library. | ||
| 9 | |||
| 10 | logger.h / logger.c: Logger module for handling incoming MQTT messages and logging RTT/throughput. | ||
| 11 | |||
| 12 | main.c: Entry point initializing the MQTT client and logger, then running the MQTT client loop. | ||
| 13 | |||
| 14 | Dependencies: | ||
| 15 | |||
| 16 | Mosquitto library (libmosquitto) | ||
| 17 | |||
| 18 | Standard C libraries (stdio, stdlib, string, sys/time, time) | ||
| 19 | |||
| 20 | Build Instructions: | ||
| 21 | |||
| 22 | Look at the Dockerfile and Makefile to find out. | ||
| 23 | Usage: | ||
| 24 | |||
| 25 | Configure MQTT broker address, port, and topic in main.c. | ||
| 26 | |||
| 27 | Run the compiled executable. | ||
| 28 | |||
| 29 | The program connects to the broker, subscribes to the specified topic, and logs RTT and throughput stats to a CSV file. | ||
| 30 | |||
| 31 | Output is also printed to the console. | ||
| 32 | |||
| 33 | Notes: | ||
| 34 | |||
| 35 | The logger expects the payload of received messages to contain a timestamp string representing the sent time in milliseconds. | ||
| 36 | |||
| 37 | The program uses blocking call mosquitto_loop_forever to run the MQTT network loop. | ||
| 38 | |||
| 39 | Contact: | ||
| 40 | For questions contact Filip Wandzio at contact@philw.dev | ||
