-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[Feature Request]: Topic array support for MqttIO.Read #32468
Comments
.take-issue |
I think this feature is related to #32195 |
@SamLeurink I’ve added support for subscribing to multiple topics in pipeline.apply(
MqttIO.readWithMetadata()
.withConnectionConfiguration(
MqttIO.ConnectionConfiguration.create(
"tcp://host:1883",
"topic1",
"topic2",
"topic3"))
); Let me know if you have any feedback! |
@twosom The PR is looking really good. Thank you for implementing this feature! List<String> topicList = Stream.of("topic1", "topic2", "topic3")
.collect(Collectors.toList());
pipeline.apply(
MqttIO.readWithMetadata()
.withConnectionConfiguration(
MqttIO.ConnectionConfiguration.create(
"tcp://host:1883",
topicList))
); It should only be a small change in the Let me know if it's possible to implement or if it's conflicting in any way! |
Thank you for your reply. |
Hello, I’ve updated it to accept parameters of type |
What would you like to happen?
Currently MqttIO.ConnectionConfiguration only allows for a singular topic which in turn means that MqttIO.Read can only be done on one topic.
The use of topic arrays would, for me at least, greatly improve flexibility.
Issue Priority
Priority: 2 (default / most feature requests should be filed as P2)
Issue Components
The text was updated successfully, but these errors were encountered: