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 multiple topic subscription in one single subscribe call #747

Closed
bxpan opened this issue Feb 28, 2019 · 2 comments
Closed

Support for multiple topic subscription in one single subscribe call #747

bxpan opened this issue Feb 28, 2019 · 2 comments
Labels
feature-request Request a new feature iot Issues with the AWS Android SDK for Internet of Things (IoT)

Comments

@bxpan
Copy link

bxpan commented Feb 28, 2019

Which AWS Services is the feature request for?
AWS IoT

Is your feature request related to a problem? Please describe.
Currently, there's no API to subscribe multiple mqtt topic in one single subscribe call, even though the underlining paho mqtt does support multiple topic subscription.
https://github.com/aws-amplify/aws-sdk-android/blob/master/aws-android-sdk-iot/src/main/java/com/amazonaws/mobileconnectors/iot/AWSIotMqttManager.java#L1084

Describe the solution you'd like
Expose a new API in the SDK to call the API in paho mqtt implementation that takes an array of topics as argument.
https://github.com/eclipse/paho.mqtt.java/blob/master/org.eclipse.paho.client.mqttv3/src/main/java/org/eclipse/paho/client/mqttv3/IMqttAsyncClient.java#L537

Describe alternatives you've considered
A workaround is for the user of the SDK to call the subscribe API multiple times, once for each topic subscription. The drawback is that instead of one mqtt message going out to the mqtt server, multiple mqtt subscribe messages are sent.

Additional context

@frankmuellr frankmuellr added iot Issues with the AWS Android SDK for Internet of Things (IoT) feature-request Request a new feature labels Feb 28, 2019
@hectomg
Copy link

hectomg commented Feb 17, 2020

This is currently supported. This should be closed.

Regards

@trycatchx
Copy link

currently "subscribeToTopic" is not support "String[] topic"

@hectomg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request a new feature iot Issues with the AWS Android SDK for Internet of Things (IoT)
Projects
None yet
Development

No branches or pull requests

5 participants