-
Notifications
You must be signed in to change notification settings - Fork 0
MQTT Broker
Justus Dicker edited this page Jul 14, 2025
·
1 revision
Mosquitto is the central MQTT server that handles all messages between the iBOAR modules (services).
Each service acts as a client that can publish or subscribe to topics.
- Can publish messages or subscribe to topics.
- Topics are like communication channels.
- Subscribing to a topic means you receive all messages sent to that channel.
| Level | Description | Example Use |
|---|---|---|
| 0 | Fire and forget (no confirmation). Fast but not guaranteed. | Lidar Controller data updates |
| 1 | Delivered at least once. May duplicate messages. | Remote control commands |
| 2 | Guaranteed exactly once. Slowest but safest. | Critical commands (e.g., startAutonomousMapping) |
- Format:
topic/subTopic/... -
Wildcards:
-
topic/#: Subscribe to all subtopics. -
+/subTopic: Subscribe to a specific subtopic under any first-level topic.
-
| Action | Command |
|---|---|
| Start Broker | sudo systemctl start mosquitto |
| Stop Broker | sudo systemctl stop mosquitto |
| Subscribe to Topic | mosquitto_sub -h localhost -t "example/topic" |
| Publish to Topic | mosquitto_pub -h localhost -t "example/topic" -m "Test message" |
Home | Modules | Components