Is mqtt_client work with python as well? #10
Answered
by
lreiher
RangeOfGlitching
asked this question in
Q&A
-
Is mqtt_client also compatible with python and Cpp as mqtt_bridge? |
Beta Was this translation helpful? Give feedback.
Answered by
lreiher
Nov 30, 2022
Replies: 1 comment 2 replies
-
Please specify what exactly you mean by "compatible with Python and C++". The mqtt_bridge is a ROS Python Node, our mqtt_client is a ROS C++ Node(let). Are you asking whether it is possible to exchange data between mqtt_bridge and mqtt_client? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When referring to MQTT bridge, are you specifically talking about the Python package mqtt_bridge or are you talking about a custom ROS Python node with the paho-mqtt MQTT Python API?
I believe it is not possible to exchange messages between mqtt_bridge <> MQTT Broker <> mqtt_client. Both sides use different ways of serializing the ROS messages to MQTT messages. It could become possible if #9 is solved and JSON serialization is used on both sides.
Talking about any kind of MQTT client, e.g. Python MQTT API <> MQTT Broker <> mqtt_client, it is possible to exchange primitive messages, see here.