wolfSSL / wolfMQTT

wolfMQTT is a small, fast, portable MQTT client implementation, including support for TLS 1.3.
https://www.wolfssl.com
GNU General Public License v2.0
521 stars 155 forks source link

MQTT_CODE_ERROR_OUT_OF_BUFFER when publishing a MQTT message #221

Closed laguionb closed 3 years ago

laguionb commented 3 years ago

WolfMQTT Publish function returns with the error code MQTT_CODE_ERROR_OUT_OF_BUFFER with a QoS of 1, and with Mosquitto 1.6.12 as broker.

This is happening because the Mosquitto broker sends a PUB_ACK with no property length, as the standard allows (l1912 of mqtt-v5.0-os)
mqtt_puback_propertylength

embhorn commented 3 years ago

Hi @laguionb

Please see the changes in this PR: Fixed by #220