Hi,
can anybody help me with local server config?
I have installed local Blynk server on same RPi as Node.js Project (project-e1), but experiencing connetion problems. Besides below described I have no connection in mobile app. I didnt use SSL certificates.
I didnt get Autorhization after running index.js
terminal====================
pi@rasp3b:~/project-e1 $ node index.js
OnOff mode
Connecting to TCP: 192.168.xxx.xxx 8440
Connected
Connecting to TCP: 192.168.xxx.xxx 8440
Connected
… and repeating
terminal====================
index.js include this
index.js ==========================
var Blynk = require(‘blynk-library’);
var AUTH = ‘I used authtoken - generated by mobile Blynk app’;
var blynk = new Blynk.Blynk(AUTH, options = { connector : new Blynk.TcpClient( options = { addr:“192.168.xxx.xxx”, port:8440 } )
});
var v1 = new blynk.VirtualPin(1);
var v9 = new blynk.VirtualPin(9);
v1.on(‘write’, function(param) {
console.log(‘V1:’, param[0]);
});
v9.on(‘read’, function() {
v9.write(new Date().getSeconds());
});
index.js ==========================