@edgepi-cloud/node-red-edgepi-digital-out
v1.0.12
Published
node-red node for edgepi digital output module utilizing remote procedure calls
Downloads
30
Readme
node-red-edgepi-digital-out
EdgePi digital output node
EdgePi digital output node that configures the state of a given output channel.
Install
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
Properties
- RPC Server The connection to your EdgePi's RPC Server.
- Channel The channel being configured.
- State The state to set the selected channel to.
Inputs
- payload string The D-OUT state. Either 'LOW', 'HIGH', or 'HI_Z'.
- channel number
Example input:
msg {
"payload": "LOW",
"channel": 2
}
Outputs
- payload string A success message stating the configured channel's changed state.
Example output:
msg {
"payload": "Successfully set DoutPins.DOUT2 to DoutTriState.LOW."
}