Dougie Lawson <
dl1...@gmail.com> writes:
1> MQTT is agnostic to the data format. You send a stream of bytes, no
> interpretation is made of whether those bytes are characters, integers,
> floats, JPEG, JSON, HTML or whatever. They are just bytes.
>
> So you don't need to "encode" or "decode" any data. Send raw bytes,
> interpret the result in your receiver program.
Yes, but one likely needs to transform to/from network byte order.
I would suggest the OP consider protobufs; that might be a good blend of
efficiency and dealing with a bunch of issues.