Blynk library implementation for JavaScript (Node.js, Espruino)
Branch: master
Clone or download
Latest commit d886383 Feb 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin Restructure tools Oct 13, 2016
certs new cert Mar 24, 2016
dist Update dist Feb 14, 2019
examples Switch port to 443 Feb 14, 2019
.gitignore Initial commit Jul 21, 2015
.npmignore Add .npmignore May 11, 2016
LICENSE Initial commit Jul 21, 2015
Makefile Boost ver Jan 21, 2017
README.md Update README.md Sep 25, 2018
blynk-browser.js path option Feb 6, 2017
blynk-espruino.js Fix connection, boost ver Feb 14, 2019
blynk-node.js Switch port to 443 Feb 14, 2019
blynk.js Fix connection, boost ver Feb 14, 2019
control Fix connection, boost ver Feb 14, 2019
package.json Fix connection, boost ver Feb 14, 2019

README.md

blynk-library-js

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

NPM version NPM download GitHub stars GitHub issues GitHub license

If you like Blynk - give it a star, or fork it and contribute! GitHub stars GitHub forks


What is Blynk?

Blynk provides iOS and Android apps to control any hardware over the Internet or directly using Bluetooth. You can easily build graphic interfaces for all your projects by simply dragging and dropping widgets, right on your smartphone. Blynk is the most popular IoT platform used by design studios, makers, educators, and equipment vendors all over the world.

Blynk Banner

Download

Blynk App: Google Play | App Store

Blynk Server

Documentation

Social: Webpage / Facebook / Twitter / Kickstarter
Help Center: http://help.blynk.cc
Documentation: http://docs.blynk.cc/#blynk-firmware
Community Forum: http://community.blynk.cc
Examples Browser: http://examples.blynk.cc
Blynk for Business: http://www.blynk.io

Getting Started tutorials

Usage example

var BlynkLib = require('blynk-library');

var blynk = new BlynkLib.Blynk('715f8caae9bf4a91bae319d0376caa8d');
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
  • Intel Edison
  • Desktop (Windows, Linux): TCP, SSL
  • Espruino
  • Pico: ESP8266WiFi_0v25, over USB/Serial
  • VoCore (using OpenWRT Espruino package)
  • Linux

Boards with supported direct pin IO:

  • Intel Edison, Galileo using mraa package
  • Raspberry Pi, Beaglebone using onoff package
  • Espruino Pico
  • OpenWrt + Espruino package

Just install the required package and this module will do auto-detection.


Implementations for other platforms

License

This project is released under The MIT License (MIT)