mqtt_udp
mqtt_udp copied to clipboard
Some impls have wrong impl of total length encoding for lengths > 127
Reported (email) by Daniel Braniss
What is wrong / not implemented
For len=224 "E0 01" is sent, which is correct, and decoding side does "((E0 & ~80) << 7) + 1"
How should it be
1 << 7 | (e0 & ~80)
i.e. order of processing is wrong.
@dzavalishin where should we add this change?