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

MQTT source kamelet does not include topic #1204

Closed
florianluediger opened this issue Dec 8, 2022 · 1 comment
Closed

MQTT source kamelet does not include topic #1204

florianluediger opened this issue Dec 8, 2022 · 1 comment

Comments

@florianluediger
Copy link

florianluediger commented Dec 8, 2022

It is common for MQTT use cases to distribute data over multiple topics. You might have different subtopics for different devices for example. The MQTT source kamelet supports subscribing to multiple topics by using wildcards but the information about the topic is lost because the MQTT source only reports the body of the MQTT message to the sink. It would be great, if the topic could be included in the body that is reported to the sink.

Example:

You have multiple devices publishing to the topics:
/data/deviceId1
/data/deviceId2
...

The MQTT source is able to subscribe to the topic /data/# and it receives all messages. However, the information about which device sent the message is lost.

@florianluediger
Copy link
Author

Nevermind, figured it out. For everyone else wondering: The topic is included in the header which is not displayed by the log sink by default.

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

No branches or pull requests

1 participant