Trigger node not accepting msg.delay

Unsure what i'm doing wrong but i'm trying to set the delay of the trigger node to 1ms so the next message is passed through

[{"id":"f39a44549a9aa1b8","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"d8e0bd9de0330542","type":"inject","z":"f39a44549a9aa1b8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"test","payloadType":"str","x":270,"y":220,"wires":[["19fa46576386dcd8"]]},{"id":"fe51ae5f41686824","type":"inject","z":"f39a44549a9aa1b8","name":"","props":[{"p":"payload"},{"p":"delay","v":"1","vt":"num"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"test1","payloadType":"str","x":270,"y":300,"wires":[["19fa46576386dcd8"]]},{"id":"7ba2bbbd8f81a764","type":"debug","z":"f39a44549a9aa1b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":710,"y":280,"wires":[]},{"id":"19fa46576386dcd8","type":"trigger","z":"f39a44549a9aa1b8","name":"","op1":"","op2":"","op1type":"pay","op2type":"payl","duration":"10","extend":false,"overrideDelay":true,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":470,"y":280,"wires":[["7ba2bbbd8f81a764"]]}]

If you look to the description of the trigger node - then msg.delay contains the delay in milliseconds. 1 ms however is a way to short that this can be handeled. in my opinion you should use at least 250ms.

i wish they would put a minimum value in the description for trigger and delay so i wouldn't have to trial and error. This still did not work.

In theory there is no minimum (0) but of course there is hardware, operating system, other apps, etc that all add something

So far I've tried 1ms, 250ms, 1000ms, 4000ms and still does not work. msg.delay does work with the delay node though

The trigger node will not override the previous payload trigger on a new message with a shorter delay.

If you want that function try this

[{"id":"6d572678.76f75","type":"inject","z":"f39a44549a9aa1b8","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"test","payloadType":"str","x":250,"y":40,"wires":[["a0b8a98c.20d12"]]},{"id":"a0b8a98c.20d12","type":"switch","z":"f39a44549a9aa1b8","name":"","property":"reset","propertyType":"msg","rules":[{"t":"true"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":420,"y":60,"wires":[["a39402cc.ecc9d","1c1dcbde.523c74"],["1c1dcbde.523c74"]]},{"id":"7acdf5dc.7ae06c","type":"inject","z":"f39a44549a9aa1b8","name":"","props":[{"p":"payload"},{"p":"reset","v":"true","vt":"bool"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"test1","payloadType":"str","x":250,"y":120,"wires":[["a0b8a98c.20d12"]]},{"id":"a39402cc.ecc9d","type":"debug","z":"f39a44549a9aa1b8","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":830,"y":40,"wires":[]},{"id":"1c1dcbde.523c74","type":"trigger","z":"f39a44549a9aa1b8","name":"","op1":"","op2":"","op1type":"pay","op2type":"payl","duration":"10","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":620,"y":80,"wires":[["a39402cc.ecc9d"]]}]

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.