Skip to content

Add input implementation #9

@josiah-tesfu

Description

@josiah-tesfu

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions