Skip to content

Allow setting max payload size#7

Merged
snichme merged 8 commits intomainfrom
allow-set-max-payload-size
Nov 13, 2025
Merged

Allow setting max payload size#7
snichme merged 8 commits intomainfrom
allow-set-max-payload-size

Conversation

@snichme
Copy link
Contributor

@snichme snichme commented Nov 13, 2025

WHY are these changes introduced?

Allows the user of this library to specify a max payload size.

The payload for the Publish packet is stored in memory and when running on memory constrained devices this gives the possibility to keep the memory usage low.

WHAT is this pull request doing?

When constructing the MQTT::IO an optional parameter allows to set the max_packet_size that will be used when reading data from the socket.

HOW was this pull request tested?

Pair programming and specs covering this

Co-authored-by: Jon Börjesson jon@84codes.com

@snichme snichme requested a review from a team as a code owner November 13, 2025 13:09
Copy link
Contributor

@spuun spuun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but add some specs? :)

@snichme snichme requested a review from spuun November 13, 2025 13:28
snichme and others added 4 commits November 13, 2025 14:41
Co-authored-by: Jon Börjesson <jon@spuun.se>
Co-authored-by: Jon Börjesson <jon@spuun.se>
@snichme snichme merged commit 1e15e68 into main Nov 13, 2025
5 checks passed
@snichme snichme mentioned this pull request Nov 14, 2025
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.

2 participants