Help with MQTT and simple queues

26 views
Skip to first unread message

Aécio Silva

unread,
Oct 30, 2025, 2:35:39 PMOct 30
to JaamSim Users Discussion Group
Hi Harry, Harvey, and everyone,

I hope you're all doing well.

My name is Aécio Silva. I'm a Production Engineering student based in Brazil. I was wondering if anyone could point me to an example of how the MQTT protocol functions in a simple queue.

I am currently using Jaamsim software. I've managed to simulate the publishing part using the MQTTSend component, but I'm having difficulty configuring the MQTTReceive component.

Thanks in advance for your help!

best regards,
Aécio Silva

Harry King

unread,
Oct 30, 2025, 2:51:32 PMOct 30
to JaamSim Users Discussion Group
Hi  Aécio,

MQTT has already been implemented in JaamSim by Georg Hackenberg at the University of Applied Sciences Upper Austria. It has not been merged with JaamSim's main branch because it needs some polishing, but it is very usable in its present form. You can find the code on GitHub by checking out the MQTT branch.

You can find other discussions on this topic by entering MQTT in the forum's search box.

Harry

Aécio Silva

unread,
Oct 30, 2025, 3:18:05 PMOct 30
to JaamSim Users Discussion Group
Hi Harry,

Thank you for your response!

I read the previous posts about the MQTT protocol branch and have already completed the merge process between the MQTT branch and the main Jaamsim branch. When I compiled it using the Eclipse software, it showed 2 errors in the Send and Receive classes. I did a preliminary analysis and fixed them just to get the project to compile.

After the project was successfully compiled, I ran the created JAR file, set up a simple queue to test the components, and found that the MQTTSend component is working perfectly. It successfully sent the message to my MQTT broker server.

However, the MQTTReceive component is not working. I just want to understand the dynamics of how the MQTTReceive component is supposed to function.

Best regards,
Aécio

Harry King

unread,
Oct 30, 2025, 4:39:58 PMOct 30
to JaamSim Users Discussion Group
Attached is an MQTT example provided by Georg Hackenberg back in 2021. It worked correctly when I tested it at the time.

Harry

mqtt_example.cfg

Aécio Silva

unread,
Oct 31, 2025, 10:04:18 AMOct 31
to JaamSim Users Discussion Group
Hi Harry,

Thank you for sharing the example. I really appreciate it.

It gave me a great reference point. The issue I was facing seems to have been specific to my setup.

Using the example, I was able to adjust my model, and it now appears to be running successfully.

Thank you once again for your attention and help.

Best regards,
Aécio
Reply all
Reply to author
Forward
0 new messages