Skip to content

Upgrade the library to be compatible with MQTTv5#343

Merged
AniruddhaKanhere merged 31 commits intomainfrom
MQTTv5-reviewed-changes
Mar 4, 2026
Merged

Upgrade the library to be compatible with MQTTv5#343
AniruddhaKanhere merged 31 commits intomainfrom
MQTTv5-reviewed-changes

Conversation

@AniruddhaKanhere
Copy link
Member

Description

Test Steps

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AniruddhaKanhere and others added 11 commits January 26, 2026 12:05
<!--- Title -->

Description
-----------
This PR adds overflow checks in the code wherever user input could cause an addition overflow.

In addition to that, this PR also updates the code to NOT drop packets. Instead, now coreMQTT sends a property to request the server to send packets which are smaller or equal in length to the user buffer - which should prevent bigger packets from ever reaching the device.

Test Steps
-----------
<!-- Describe the steps to reproduce. -->

Checklist:
----------
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have tested my changes. No regression in existing tests.
- [ ] I have modified and/or added unit-tests to cover the code changes
in this Pull Request.

Related Issue
-----------
<!-- If any, please provide issue ID. -->
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
<!--- Title -->

Description
-----------
<!--- Describe your changes in detail. -->

Test Steps
-----------
<!-- Describe the steps to reproduce. -->

Checklist:
----------
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [ ] I have tested my changes. No regression in existing tests.
- [ ] I have modified and/or added unit-tests to cover the code changes
in this Pull Request.

Related Issue
-----------
<!-- If any, please provide issue ID. -->
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
…358)

Description
-----------
This PR adds checks and code to pass in NULL to the callback when notifying the application of 'terminal' packets. The terminal packets mean that the coreMQTT library is not allowed to send any packets back to the broker as a response to these packets. Examples of such packets are: SUBACK, UNSUBACK, PUBCOMP, PUBACK and CONNACK.
@AniruddhaKanhere AniruddhaKanhere changed the title TEST PR Upgrade the library to be compatible with MQTTv5 Mar 3, 2026
@kstribrnAmzn
Copy link
Member

Approving as this is simply a copy over of the reviewed MQTT v5 work

kstribrnAmzn
kstribrnAmzn previously approved these changes Mar 3, 2026
archigup
archigup previously approved these changes Mar 3, 2026
@AniruddhaKanhere AniruddhaKanhere dismissed stale reviews from archigup and kstribrnAmzn via 6269a78 March 4, 2026 21:48
@AniruddhaKanhere AniruddhaKanhere merged commit bdabe86 into main Mar 4, 2026
23 of 25 checks passed
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

Successfully merging this pull request may close these issues.

4 participants