Skip to content

Blynk library implementation for JavaScript (Node.js, Espruino)

License

Notifications You must be signed in to change notification settings

dougalcampbell/blynk-library-js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NPM

Implementations for other platforms:


blynk-library-js

Blynk library implementation for JavaScript (Node.js, Espruino)

What is Blynk?

Blynk is a platform with iOS and Android apps to control Arduino, Raspberry Pi and the likes over the Internet. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets. If you need more information, please follow these links:

Usage example:

var Blynk = require('blynk');

var blynk = new Blynk.Blynk('7736215262c242c1989a1e262fbbcb19');
var v1 = new blynk.VirtualPin(1);
var v9 = new blynk.VirtualPin(9);

v1.on('write', function(param) {
  console.log('V1:', param);
});

v9.on('read', function() {
  v9.write(new Date().getSeconds());
});

Tested on:

  • Node.js (Windows, Linux)
  • TCP
  • SSL
  • Espruino Pico
  • USB/Serial

Boards with supported direct pin IO:

  • Espruino
  • Raspberry Pi/Beaglebone using onoff package

Espruino

To test this with the Espruino, you can try this:

var Blynk = require('http://tiny.cc/blynk-js')

It will automatically detect Espruino and try connecting to Blynk over default USB.

Warning: it will move console to Serial1! Don't try this if you don't know how to switch it back!

About

Blynk library implementation for JavaScript (Node.js, Espruino)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.3%
  • HTML 4.7%