forked from node-red/node-red
-
Notifications
You must be signed in to change notification settings - Fork 0
Output node feature definitions
zobalogh edited this page Oct 29, 2014
·
5 revisions
This page defines the features and design conventions that each output node should adhere to. The page is currently under development and changes to its contents are possible. Once the behaviour is agreed upon, these conventions are going to be migrated onto the Node-RED website for easy reference.
- Produce a clearly and well defined behaviour that affects some externals outside Node-RED
- Report errors using
node.warn()ornode.error()if the external systems are in an unexpected state/behaviour
- Poll at regular intervals to see if msg trigger conditions are met:
node.interval = setInterval(function() {
node.emit("input", {});
}, REPEAT_IN_MILLIS);
* Alternatively they could fire by being triggered by callbacks => TODO define behaviour here
* Reserve the right not to send anything at all, ever if conditions are never met