Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in: src/mqtt_bridge #19

Closed
rachel-dev opened this issue Jan 10, 2019 · 0 comments · Fixed by #27
Closed

Error in: src/mqtt_bridge #19

rachel-dev opened this issue Jan 10, 2019 · 0 comments · Fixed by #27

Comments

@rachel-dev
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant