I have a TRB gateway gathering data every two minutes and publishing it to its own MQTT broker. Is it possible to write a script for the gateway, that subscribes to the topic, combines the buffered data to a file and sends this file via email? This should happen periodically every two days. How would I go about it?