UNPKG

@edgepi-cloud/node-red-edgepi-digital-out

Version:

node-red node for edgepi digital output module utilizing remote procedure calls

44 lines (36 loc) 962 B
# 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**<br> The connection to your EdgePi's RPC Server. - **Channel**<br> The channel being configured. - **State**<br> The state to set the selected channel to. ### Inputs - **payload** *string*<br> The D-OUT state. Either 'LOW', 'HIGH', or 'HI_Z'. - **channel** *number*<br> Example input: ``` msg { "payload": "LOW", "channel": 2 } ``` ### Outputs - **payload** *string*<br> A success message stating the configured channel's changed state. Example output: ``` msg { "payload": "Successfully set DoutPins.DOUT2 to DoutTriState.LOW." } ```