How to implement a timeout on a subflow?

I would want to write a subflow that implement a modbus-rtu request and the relative reading of the response, but in case of no answer from the mosbus client I need to "exit" from subflow with a timeout output.
I wouldn't wait forever for the client's reply.
How I can do it?

Hi @naamah75

The Trigger node can be configured to send a message after a period of time unless it has been reset. That can form the starting point for a timeout flow. This recipe in the cookbook gives an example: https://cookbook.nodered.org/basic/trigger-timeout

1 Like

Trigger node looks a lot better than my implementation...

online

Thanks!