Component for generating MQTT messages