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-input
- RPC Server
The connection to your EdgePi's RPC Server. - Channel
The channel to check the state on.
- payload number
The Digital Input channel.
Example input:
msg {
"payload": 1
}
- payload boolean
The status of the given channel.
Example output:
msg {
"payload": false
}