seb0uil / blynk-node-client

3 stars 0 forks source link

is it work like app on android phone? #1

Closed ngohuunam closed 7 years ago

ngohuunam commented 7 years ago

Hi

is this module simulate app on mobile phone?

seb0uil commented 7 years ago

Hi, Yeah, the idea is to replace action from mobile app by nodejs. So instead of using my phone to do actions, I use some kind of js

var c = require('blynk-client');
[...]
c.connect(xxx, xxx...).then(function() {
    c.activate('1').then(function() {
        return c.hardware('1', 'v', 'w', 3, 0)
    }).then(function() {
        return c.hardware('1', 'v', 'w', 2, '20400274')
    }).then(function(){
        console.log('done')
    })
}
ngohuunam commented 7 years ago

Yeah, this is a good idea, we can build any blynk dashboard on browser or another app, is it against with blynk? are they upset with this?