generator-embedded

0.0.3 • Public • Published

generator-embedded

Getting faster to a blinking LED with HTTP and the Firmata protocol.

This generator offers:

  • a simple server template that wraps the Firmata module
  • a websocket connection

How to use

HTTP

Put a LED on some Arduino pin, and run:

$ curl localhost:3474/api/6/check

WebSockets

Put a simple switch on Arduino pin 5, and run:

$ wscat -c ws://localhost:3474
connected (press CTRL+C to quit)
  < {"state": 1}

License

MIT (C) 2015 Patrick Mulder

Readme

Keywords

Package Sidebar

Install

npm i generator-embedded

Weekly Downloads

1

Version

0.0.3

License

MIT

Last publish

Collaborators

  • pmu