The line_to_mqtt module implements a "Line Protocol" named "MQTT". It requires configuration setup in "MQTT". When this protocol is chosen by a Line, it buffers whatever it receives on the Line till it sees a newline, then sends the buffer contents as an MQTT publish.
Build it from project "line_to_mqtt".