For the sake of simplicity (e.g. transfer ids are now easier to compare).
EMQX file transfer over MQTT
$ rebar3 compile