gpio-socket

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i gpio-socket

Weekly Downloads

4

Version

0.1.1

License

none

Last publish

Collaborators

  • scttnlsn