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

mqtt5-source: Issue with wildcard topic. Character encoding issue? The same topic works with the paho-mqtt5 component #2248

Open
mikoskinen opened this issue Oct 16, 2024 · 1 comment

Comments

@mikoskinen
Copy link

The mqtt5-source seems to have issues if the wildcard is in the middle of the topic. For example this doesn't work:

- route:
    id: route-05dc
    nodePrefixId: route-4ca
    from:
      id: from-c730
      uri: kamelet:mqtt5-source
      parameters:
        topic: test/+/incoming
        brokerUrl: tcp://localhost:1883
      steps:
        - log:
            id: log-ff85
            message: ${body}

The route just doesn't receive any messages:

image

If the kamelet is replaced with paho-mqtt5, things work:

- route:
    id: route-05dc
    nodePrefixId: route-4ca
    from:
      id: from-5a40
      uri: paho-mqtt5
      parameters:
        topic: test/+/incoming
      steps:
        - log:
            id: log-ff85
            message: ${body}

image

@davsclaus
Copy link
Contributor

try with RAW(xxxx) for that value in the kamelet

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

2 participants