You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
When I try to use mqtt private path to publish topic from mqtt to ROS, Ros can't get message. For example, publishing a topic which is device/001/echo (private_path: device/001) from MQTT, ROS should get message from /private/back but actually not.
I find the promblem is that in class MqttToRosBridge(Bridge): self._mqtt_client.subscribe(self.topic_from) self._mqtt_client.message_callback_add(self.topic_from, self._callback_mqtt) shold change to self._mqtt_client.subscribe(self._topic_from) self._mqtt_client.message_callback_add(self._topic_from, self._callback_mqtt)
The text was updated successfully, but these errors were encountered:
Hi,
When I try to use mqtt private path to publish topic from mqtt to ROS, Ros can't get message. For example, publishing a topic which is device/001/echo (private_path: device/001) from MQTT, ROS should get message from /private/back but actually not.
I find the promblem is that in
class MqttToRosBridge(Bridge):
self._mqtt_client.subscribe(self.topic_from) self._mqtt_client.message_callback_add(self.topic_from, self._callback_mqtt)
shold change toself._mqtt_client.subscribe(self._topic_from) self._mqtt_client.message_callback_add(self._topic_from, self._callback_mqtt)
The text was updated successfully, but these errors were encountered: