Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    gpio-socketpublic

    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

    Keywords

    none

    install

    npm i gpio-socket

    Downloadsweekly downloads

    2

    version

    0.1.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar