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

Subscribe more than 8 topics in sequence will be failed #115

Open
s0920832252 opened this issue Oct 14, 2019 · 2 comments
Open

Subscribe more than 8 topics in sequence will be failed #115

s0920832252 opened this issue Oct 14, 2019 · 2 comments

Comments

@s0920832252
Copy link

        When i subscribe more than 8 topics , the event MqttMsgSubscribed won't be triggered.
        according the situation , i think the subscribtion is not successed. but i don't know why...
        how can i fix it , please help me , 
        Thanks.
        my need is subscribe at lease 20 topics.  

        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}1/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}2/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}3/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}4/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}5/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}6/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}7/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
        _mqttConnecter.AddTopic($"$aws/things/test-{_localID}8/shadow/update", MqttMsgBase.QOS_LEVEL_AT_LEAST_ONCE);
@shoover
Copy link

shoover commented Jan 24, 2020

It's a protocol limitation (AWS). You can subscribe multiple batches of 8 on the same connection.

@s0920832252
Copy link
Author

thanks , you are right.
my example code has error.

the AWS limitation are

  1. not more than 50 topices on the same connection.
  2. not more than 8 topices on the same subscribed action
    sorry about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants