In mosquitto_sub, I would like to receive binary data, while also getting
the other data in a json format. When I try to receive binary data now, I get
an empty string like so:
Would it make sense to let the payload, in case that it cannot be decoded
into a string, be an array of unsigned integers like [0,255,0]? This format
is already adopted by systemds journalctl. See here:
In
mosquitto_sub
, I would like to receive binary data, while also getting the other data in a json format. When I try to receive binary data now, I get an empty string like so:Would it make sense to let the
payload
, in case that it cannot be decoded into a string, be an array of unsigned integers like[0,255,0]
? This format is already adopted bysystemd
sjournalctl
. See here:If you think this change makes sense, I can give its implementation a try.