arduino-mqtt
arduino-mqtt copied to clipboard
Skip Large Messages
If a client receives a message that is bigger than its receive buffer if will crash and return the error "LWMQTT_BUFFER_TOO_SHORT". For this library the better approach would be to just skip and log large messages.
can we add the size for this buffer?
Hello, i had the same issue. Did you modified the behavior? Can we catch the error?
@256dpi
Hello, Nice feature to have - on large payloads device loses the connection to MQTT broker, so we have to protect it from this kind of possible attack.
We should expose lwmqtt_drop_overflow to skip too large messages.
Added in eae214b1c2ca0d861037617a0ed0128e3c5ec306.