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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.1
    1
  • 0.1.0
    0

Package Sidebar

Install

npm i gpio-socket

Weekly Downloads

1

Version

0.1.1

License

none

Last publish

Collaborators

  • scttnlsn