Skip to content

r21-iot/webduino-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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:

// need to acquire 'webduino' in Node.js:
// 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

MIT

About

The Webduino Javascript Core, for Browser and Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%
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