Skip to content

⚙️ The Webduino Javascript Core, for Browser and Node.js

License

Notifications You must be signed in to change notification settings

webduinoio/webduino-js

Repository files navigation

webduino-js

The Webduino Javascript Core, for Browser and Node.js

Installation

Browser

Using bower:

$ bower install webduino-js#dist

Insert scripts:

<script src="bower_components/webduino-js/dist/webduino-base.js"></script>
<script src="bower_components/webduino-js/src/module/Led.js"></script>
... (modules used)

Or all-in-one:

<script src="bower_components/webduino-js/dist/webduino-all.js"></script>

Node.js

$ npm install webduino-js

Usage

webduino-js provides isomorphic APIs:

var webduino = require('webduino-js');

var board, led;

board = new webduino.WebArduino('device_id');

board.on('ready', function() {
  led = new webduino.module.Led(board, board.getDigitalPin(10));
  led.on();
});

Transports

webduino-js talks to Webduino Dev Board via MQTT by default. However, since webduino-js speaks Firmata, we can also directly talk to standard Arduino or any dev board that understands firmata.

Currently we have transports supporting USB serial port and Bluetooth (HC-06 tested) communications: (Note: you have to install Firmata library first)

See Also

License

This project is licensed under MIT license, see LICENSE for more information.

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy