Blynk Node.Js library is broken and will not connect to the server

Blynk-library-js does not seem to work at all with Blynk 2.0.
The library was last updated in February 2019. Blynk Advertisements claim Node.js support, but this is clearly not the case.

I am running Node.js v18.13.0. On a Windows 10 computer with the following code. I really hope this library will be updated.

~Mike

var BlynkLib = require('blynk-library');
var AUTH = '*****************';
var blynk = new BlynkLib.Blynk(AUTH);

blynk.on('connect', function () {
console.log("Blynk Connected!");
blynk.virtualWrite(0, 150)
});
blynk.on('disconnect', function () {
console.log("Blynk Disconnected");
});

I would recommend using the C++ library instead.

I use the C++ library on microcontrollers… Node JS is convenient for use on computers for rapid development and integration with other Node JS libraries.

1 Like