lf-edge / ekuiper

Lightweight data stream processing engine for IoT edge
https://ekuiper.org
Apache License 2.0
1.47k stars 413 forks source link

Wildcard MQTT topic streams #730

Closed RyeBot33 closed 3 years ago

RyeBot33 commented 3 years ago

Trying to use a wildcard topic with mqtt source. Something like: Actual Topic: bldg1/room1/co2 Stream Datasource: +/+/co2

This does not seem to work. Are wildcards supported?

jinfahua commented 3 years ago

It's supported. How do you write the stream definition? Could you please attach the log file if there are any error?

RyeBot33 commented 3 years ago

No errors when creating the stream. I have attached two files, one is of the actual curl request (streams.txt) and the other is of the get request on the stream (wildcard.txt). Hope this helps. streams.txt wildcard.txt

ngjaying commented 3 years ago

I tried your stream, it works fine. Assume you have created a rule with the stream. Could you please attach your log?

RyeBot33 commented 3 years ago

So, embarrassingly, It looks like my publisher wasn't publishing to the correct topic, on letter off. I re-input the topic on the publishing side and all seemed to work. Thank you very much for the help and love the work!