MQTT, message formats (again) stuck

You may have some luck with the functions I use in this post. I find them very useful in communicating between multiple instances of node-RED, but there are lots of other uses too.