EdgePi digital output node that configures the state of a given output channel.
Install normally through the node-red editor or install with npm in your node-red directory
(typically located at ~/node.red
) by running the following command:
npm install @edgepi-cloud/node-red-edgepi-digital-out
- RPC Server
The connection to your EdgePi's RPC Server. - Channel
The channel being configured. - State
The state to set the selected channel to.
- payload string
The D-OUT state. Either 'LOW', 'HIGH', or 'HI_Z'. - channel number
Example input:
msg {
"payload": "LOW",
"channel": 2
}
- payload string
A success message stating the configured channel's changed state.
Example output:
msg {
"payload": "Successfully set DoutPins.DOUT2 to DoutTriState.LOW."
}