UNPKG

blynk-app-client

Version:

Node.js module for accessing Blynk server through the App interface

14 lines (13 loc) 360 B
var blynk = require("../index.js").createClient("127.0.0.1", 8443); blynk.connect("andrea.catozzi@gmail.com", "1tehran") .then(function (status) { return blynk.loadProfileGzipped(60814347); }) .then(function (data) { console.log("Data: " + data) process.exit(); }) .catch(function (error) { console.log("Error: " + error); process.exit(); });