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)
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)