Just First message delay only

Hi,
I just want to delay the first message for a certain amount of time. How can I do it?

Subsequent messages should arrive without delay.

Thanks for your help.

So, in theory, the second message could arrive before the first (delayed) one is released?

1 Like

First of all, my answer is no.

If you need to go step by step.

my delay=100 seconds

No messages will be delivered within 100 seconds.

New messages received after 100 seconds will be forwarded.

Right, so you want all messages delayed by 100 seconds. So if the first message is sent at time 0 and the second is sent at time 10 seconds, then the first will arrive at time 100 seconds and the second will arrive at time 110 (so it also has been delayed from time 10 to time 110, 100 seconds delay).
A delay node will do exactly that. Try it.

Please let me put it this way.

I will send a message and the counter will start. (100 seconds). No incoming messages within 100 seconds will be forwarded.

However, when the counter is reset, new messages will be forwarded instantly. without delay.

try something like this

[{"id":"ae4ef9b4.4bd328","type":"debug","z":"b779de97.b1b46","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":870,"y":4260,"wires":[]},{"id":"e6b2b1f0.ada2b8","type":"change","z":"b779de97.b1b46","name":"","rules":[{"t":"set","p":"stop_delay","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":630,"y":4220,"wires":[["ae4ef9b4.4bd328"]]},{"id":"998e2ee1.065bc8","type":"switch","z":"b779de97.b1b46","name":"","property":"stop_delay","propertyType":"flow","rules":[{"t":"false"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":240,"y":4220,"wires":[["493b5acc.71c19c"],["ae4ef9b4.4bd328"]]},{"id":"493b5acc.71c19c","type":"trigger","z":"b779de97.b1b46","name":"","op1":"","op2":"","op1type":"nul","op2type":"pay","duration":"100","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":400,"y":4200,"wires":[["e6b2b1f0.ada2b8"]]},{"id":"b6aca93.d3504d8","type":"inject","z":"b779de97.b1b46","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":70,"y":4220,"wires":[["998e2ee1.065bc8"]]}]