gpio-socket

GPIO control via WebSocket


Install
npm install gpio-socket@0.1.1

Documentation

gpio-socket

GPIO control via WebSocket

Install

npm install -g gpio-socket

Usage

gpio-socket <port>

Protocol

Write

["write", pin, value]

Set the value (1 or 0) of the given pin.

Subscribe

["subscribe", pin]

Subscribe to changes on the given pin.

Change events will be of the form:

["change", pin, value]

License

MIT