apache / camel-kamelets

Apache Camel Kamelets Repository
https://camel.apache.org
Apache License 2.0
55 stars 79 forks source link

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

Open mikoskinen opened 1 month ago

mikoskinen commented 1 month ago

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 commented 1 month ago

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