0.1.1 • Published 9 years ago

gpio-socket v0.1.1

Weekly downloads
7
License
-
Repository
github
Last release
9 years ago

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

0.1.1

9 years ago

0.1.0

9 years ago