2.0.8 • Published 1 year ago

@mschaeffler/node-red-msg-resend v2.0.8

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 year ago

@mschaeffler/node-red-msg-resend

A Node Red node for resending flow messages.

image of example flow

When a new input message arrives, it will be (re)sent to the output port at specified time intervals. This process will repeat until the next input message arrives, or until the maximum number of resends has been reached.

Thanks to Bart Butenaers for the basement I developed this node out of.

Install

$ npm install @mschaeffler/node-red-msg-resend

Input

msg.typedescription
topicstringtopic for the output message
payloadpayload for the output message
resetbooleanif true, resets the node; if combined with a topic, only this topic is reseted
resend_intervalnumberchanges the parameter interval for this topic; value is in msec
resend_max_countnumberchanges the parameter maximum for this topic

Output

msg.typedescription
topicstringsame is in corresponding input message
payloadsame is in corresponding input message
counternumberresending counter, if parameter addCounters is set
maxnumberresending maximum, if parameter addCounters is set
...same is in corresponding input message

Parameters

configtypedescription
intervalnumberthe intervall between two resends
maximumnumberthe maximum number of resends; 0 is infinite
byTopicbooleanshall resending be done on a topic base
firstDelayedbooleanshall the first message be sent after a intervall, or instantly
addCountersbooleanshall a counter be added to the sent mesages
clonebooleanshall the messages be cloned

Example Flow

example flow

Author

Mathias Schäffler

Bart Butenaers

License

Apache-2.0

2.0.3

1 year ago

2.0.2

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.8

1 year ago

2.0.1

1 year ago

2.0.0

1 year ago

1.2.0

1 year ago