vincentdephily / mqttest

An MQTT server designed for unittesting MQTT clients.
Other
20 stars 0 forks source link

Flexible payload decoding #4

Open vincentdephily opened 4 years ago

vincentdephily commented 4 years ago

The idea is to keep the bytes field always present, but to change utf8 field to decoded and provide an option to specify the type (maybe per-topic), providing internal default for string and json, plus a program type that'd call the specified external binary. Binary would take the bytes in, and spit the json to stdout (or an error to stderr).

vincentdephily commented 4 years ago

The main functionality is here. I have an example codec program to cleanup and commit. But running the program needs to be more robust and async.