node-red to do this for MQTT server 192.168.100
[{"id":"e7a9896a.fa9a18","type":"mqtt in","z":"21dc59a8.d43566","name":"","topic":"#","qos":"2","datatype":"auto","broker":"dbb6c1e9.b6c53","x":150,"y":480,"wires":[["ab0daaa8.084ca"]]},{"id":"ab0daaa8.084ca","type":"change","z":"21dc59a8.d43566","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":480,"wires":[["5f2c47b6.b8d52"]]},{"id":"5f2c47b6.b8d52","type":"mqtt out","z":"21dc59a8.d43566","name":"","topic":"","qos":"","retain":"","broker":"dbb6c1e9.b6c53","x":590,"y":500,"wires":[]},{"id":"dbb6c1e9.b6c53","type":"mqtt-broker","z":"","broker":"192.168.0.100","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthRetain":"false","birthPayload":"","closeTopic":"","closeQos":"0","closeRetain":"false","closePayload":"","willTopic":"","willQos":"0","willRetain":"false","willPayload":""}]