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-led
RPC Server
The connection to your EdgePi's RPC Server.
- payload (boolean)
The LED state. - pin (number)
The LED pin on which to change state.
Example input configuration:
msg {
"payload": true,
"pin": 1
}
- payload (string)
A success message stating the configuration of the given LED. Example output:
msg {
"payload": "Successfully turned on LEDPins.LED1."
}