vshymanskyy / blynk-library-js

Blynk library for JS. Works with Browsers, Node.js, Espruino.
https://blynk.io/
MIT License
215 stars 67 forks source link

How handle array of param on Write? #23

Closed ngohuunam closed 7 years ago

ngohuunam commented 7 years ago

Hi My code

var v2 = new blynk.VirtualPin(2);      //table
var v20 = new blynk.VirtualPin(20);`     //webhook
v2.on('write', function(param) {
  if (param[0] == "select")
  {
    var rowID = param[1];
    v20.write(rowID);
  }
});

is it right?

vshymanskyy commented 7 years ago

Please post such questions on community forum.