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
527 stars 156 forks source link

Fix chunked publish with non-block #223

Closed embhorn closed 3 years ago

embhorn commented 3 years ago

Created MQTT_CODE_PUB_CONTINUE to be used when publishing a payload larger than the MQTT buffer size (publish in chunks).

do {
    rc = MqttClient_Publish(client, publish);
}while ((rc != MQTT_CODE_PUB_CONTINUE) && (rc != MQTT_CODE_CONTINUE));

This fixes an issue from ZD12608

This fixes #192

embhorn commented 3 years ago

Weird... I must have undone that return code fix when I changed something else in there.