Skip to content

Commit

Permalink
Add note about resubscribe limits to api docs (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedTwigleg authored May 23, 2023
1 parent 577b113 commit cb27c34
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions awscrt/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,15 @@ def resubscribe_existing_topics(self):
This is to help when resuming a connection with a clean session.
**Important**: Currently the resubscribe function does not take the AWS IoT Core maximum subscriptions
per subscribe request quota into account. If the client has more subscriptions than the maximum,
resubscribing must be done manually using the `subscribe()` function for each desired topic
filter. The client will be disconnected by AWS IoT Core if the resubscribe exceeds the subscriptions
per subscribe request quota.
The AWS IoT Core maximum subscriptions per subscribe request quota is listed at the following URL:
https://docs.aws.amazon.com/general/latest/gr/iot-core.html#genref_max_subscriptions_per_subscribe_request
Returns:
Tuple[concurrent.futures.Future, int]: Tuple containing a Future and
the ID of the SUBSCRIBE packet. The Future completes when a SUBACK
Expand Down

0 comments on commit cb27c34

Please sign in to comment.