As MQTT 5.0 allows to specify the disconnect reason in the Disconnect packet, use this new feature to improve error notification to the broker, according to the error guidelines in the MQTT 5.0 spec. For most cases, a generic arbitrary mapping between errno values and reason codes is used, however the parser can specify the disconnect reason code manually to better handle certain corner cases (like invalid topic alias used). Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no> |
||
|---|---|---|
| .. | ||
| CMakeLists.txt | ||
| Kconfig | ||
| mqtt_decoder.c | ||
| mqtt_encoder.c | ||
| mqtt_internal.h | ||
| mqtt_os.h | ||
| mqtt_rx.c | ||
| mqtt_transport_socket_tcp.c | ||
| mqtt_transport_socket_tls.c | ||
| mqtt_transport_websocket.c | ||
| mqtt_transport.c | ||
| mqtt_transport.h | ||
| mqtt.c | ||