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

Support for fine-grained configuration for each MqttSubscription in Spring Integration. #8850

Closed
demiphea opened this issue Jan 4, 2024 · 0 comments

Comments

@demiphea
Copy link

demiphea commented Jan 4, 2024

Expected Behavior

Be able to configure MqttSubscription with fine granularity in Spring Integration, allowing for the customization of MQTT options (such as qos, noLocal, retainAsPublished, etc) for each individual or multiple topics.

Current Behavior

I'm using org.eclipse.paho.mqttv5.client in Spring Integration, and Mqttv5PahoMessageDrivenChannelAdapter lacks a method to set MqttSubscription other than creating a MqttSubscription with only default parameters(topic and qos) .

MqttSubscription[] subscriptions = IntStream.range(0, topics.length)
.mapToObj(i -> new MqttSubscription(topics[i], requestedQos[i]))
.toArray(MqttSubscription[]::new);

Seems like it's the same in MQTT v3 version, where there is no method provided to configure MqttSubscription.

Context

Due to limitations in my coding skills, I have currently only been able to overwrite Mqttv5PahoMessageDrivenChannelAdapter and modifying the default configuration of MqttSubscription to address this issue.

Thank you for taking the time to review this issue. I appreciate your attention to it.

@demiphea demiphea added status: waiting-for-triage The issue need to be evaluated and its future decided type: enhancement labels Jan 4, 2024
@artembilan artembilan added this to the 6.3.0-M1 milestone Jan 16, 2024
@artembilan artembilan added in: mqtt and removed status: waiting-for-triage The issue need to be evaluated and its future decided labels Jan 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants