-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Currently, any message can trigger the node as input. A more effective and appropriate implementation would have the input dynamically configure the node settings.
Node-RED uses msg.payload and msg.topic to configure input, where msg.payload is used for main data and msg.topic is used for specific sub-categories/ actions. Nodes such as 'change', 'function', or 'switch' can further be used to change node configuations dynamically. For example, if the current node is being set based on temperature change from a temperature node, the temperature node might have a msg.payload set to the temperature. A function node could then translate 'above 25 degrees' to the current node's specific configurations.
Potential input settings for ADC:
msg.payload: voltage, differential, RTD
msg.topic: Channel