Hello there,
it could be a stupid Question but a cant see the solution atm.
for my Question i use a simplified flow.
MQTTServer Node -> Function Node -> Debug Node
[{"id":"8aad5e6d.f167b","type":"mqtt in","z":"af61c022.bc96e","name":"","topic":"my theme(nothing in here)","qos":"2","datatype":"auto","broker":"3ad0d234.33205e","x":1190,"y":1410,"wires":[["80d05e31.509bb"]]},{"id":"80d05e31.509bb","type":"function","z":"af61c022.bc96e","name":"","func":"var x = 0;\nx = x +1;\nnode.log(\"Runthroughs:\" + x);\nreturn msg;","outputs":1,"noerr":0,"x":1400,"y":1410,"wires":[["1de5d02d.0bd1f"]]},{"id":"1de5d02d.0bd1f","type":"debug","z":"af61c022.bc96e","name":"","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":1560,"y":1410,"wires":[]},{"id":"3ad0d234.33205e","type":"mqtt-broker","z":"","name":"Mosquito","broker":"localhost","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
I would like to get the results from the Funktion node in the same rate as from the MQTT Server. (1200 MS)
It seems like my Funktion node runs only once but passes through the payload from the MQTT -Server in the wanted rate.
I hope the Question is understandable
dearly
Chorum