Skip to content

Fixed max value of "Remaining length" in "Fixed header"#1064

Open
Nezgar wants to merge 1 commit into
knolleary:masterfrom
Nezgar:master
Open

Fixed max value of "Remaining length" in "Fixed header"#1064
Nezgar wants to merge 1 commit into
knolleary:masterfrom
Nezgar:master

Conversation

@Nezgar

@Nezgar Nezgar commented Aug 14, 2024

Copy link
Copy Markdown

According to MQTT 3.1 Specification number of bytes in "Control Packet" may be from 1 to 4(up to 256MB). When we try to send data more than 65535(2 bytes) we overflow value in "length" variable. We cant send data more than 65535(2 bytes).

According to MQTT 3.1 Specification number of bytes in "Control Packet" may be from 1 to 4. (up to 256MB). When we try to send data more than 65535(2 bytes) we overflow value in "length" variable. We cant send data more than 65535(2 bytes).
@hmueller01

Copy link
Copy Markdown

I'll soon release PubSubClient3 v3.1.0 that includes sending big payloads.
It is already integrated in the head of
https://github.com/hmueller01/pubsubclient3
using consequently size_t and can be tested ...

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