dzavalishin / mqtt_udp

Simpified version of MQTT over UDP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

udp packet not terminated properly

dannybr opened this issue · comments

Bug or feature

bug

What is wrong / not implemented

in the sent udp packet
according to the specs the topic and value should be null terminated
not serious, but the trailing id ('n' ...) gets swallowed by the 'value'

btw, great stuff!!!

How should it be

topic\0value\0...

Correct behaviour is documented in (URL)

Environment

  • GitHub commit:
  • Prog language:
  • OS/hardware:

Fixed/implemented in

  • Pyhon implementation
  • Java implementation
  • Java tools
  • C implementation/Unix
  • C implementation/Embedded
  • Lua implementation
  • CodeSys implementation