Skip to content

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npm version Dependency Status npm

blynk-client

Simple node module to get manage blynk.

$ npm install blynk-client

Then get json information of your account

 var c = require('blynk-client');  
 var p = c.connect('@mail','password','server',port);  

You can set pin value

p.then(function(){
    return c.hardware('2','v','w',1, 25);  //dashboardId, pinType, read/write, pinId, [value]
})

Or listen event

c.event.on('message', function(a) {
 console.log('MESSAGE:  ' + JSON.stringify(a) );
});

Events are

  • message : for all type of message events
  • dashboard : for dashboard events
  • [pinType][pinId] (ie v1 or d1 for example) : for pin event
  • sync : for sync event

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages