Communication Between Ignition and Python Program via Mosquitto

Hello everyone,

I am working on a project where I want to integrate Ignition Maker Edition with a Python program using Mosquitto for communication. However, I am encountering an issue with the data format that I receive in my Python program.

Here is the data format I send:

{
"DoorClosed": false
}

But this is what I receive:

�Нލ2
oorClosed�ȝލ2
8Jp

I have also tried using the MQTT server module from Ignition itself, but I encountered the same problem.

Interestingly, when I use other MQTT publishers, the received data is correctly formatted

My goal is to perform some initial testing, so I would appreciate any guidance or suggestions on how to resolve this formatting issue.

Thank you in advance for your help!

Best regards,
Safi

You need to configure the MQTT Engine module to use a Custom namespace, otherwise it assumes that incoming data is in Sparkplug format.

https://docs.chariot.io/display/CLD80/MQTT+Engine+Custom+Namespace

Thank you for the quick response!

Specifically, I am interested in how to utilize this namespace within my Python program.

Any guidance on how to implement or handle this namespace configuration in Python would be very helpful.

Thank you!

Check our open-source Sparkplug python clients at