pubsubclient icon indicating copy to clipboard operation
pubsubclient copied to clipboard

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

Open Nezgar opened this issue 1 year ago • 1 comments

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).

Nezgar avatar Aug 14 '24 18:08 Nezgar

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 ...

hmueller01 avatar Mar 18 '25 18:03 hmueller01