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-SN Add disconnect_cb when disconnect recv from broker; Fix PUB A… #274

Closed embhorn closed 2 years ago

embhorn commented 2 years ago

…CK return status handling

A server or gateway may also sends a DISCONNECT to a client, e.g. in case a gateway, due to an error, cannot map a received message to a client. Upon receiving such a DISCONNECT message, a client should try to setup the connection again by sending a CONNECT message to the gateway or server.

PUB ACK handler was not using passed in object if available. This discarded the return code in the PUB ACK.

This fixes an issue reported in ZD13550

embhorn commented 2 years ago

Approved by customer, ready for merge.