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

1.0.12 • Public • Published

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."
}

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

25

Version

1.0.12

License

MIT

Unpacked Size

11.9 kB

Total Files

8

Last publish

Collaborators

  • admin-edgepi