espressif / esp-mqtt

ESP32 mqtt component
Apache License 2.0
614 stars 258 forks source link

fix: Allow MQTT v5 zero length payload (IDFGH-9475) #250

Closed nebkat closed 1 year ago

nebkat commented 1 year ago

Zero length payload is permitted per MQTT 5 spec: 3.3.3 PUBLISH Payload (https://docs.oasis-open.org/mqtt/mqtt/v5.0/mqtt-v5.0.html#_Toc511988596).

ESP-YJM commented 1 year ago

@nebkat Good fix. Thanks.