Hello,
Sorry for my English because I am French.
I try to use operating system → 2021-10-30-raspios-bullseye-armhf-full on my PI3B
I have install blynk in local. the server run with “server-0.41.16”
I have another pi that work also with blynk in local. the installation was made in 2019 with ubuntu mate 16.04. the server run with server-0.41.1.
for testing I use node and small test program “rucher.js” in the both configurations. I change only AUTH token because it is different on my android phone
Blockquote
var blynk = require(‘/usr/lib/node_modules/blynk-library’);
//var AUTH = ‘8r6OFxt5DnejIN9dgrBSS5aemI4__nMD’; // when I use raspios-bullseye
var AUTH = ‘e0b388eeda1b43b498e830776131433f’; // when I use Ubuntu Mate
var tcp = new blynk.TcpClient(options={addr:“127.0.0.1”, port:8081});
var blynk = new blynk.Blynk(AUTH, options = {connector :tcp});
var v1 = new blynk.VirtualPin(1);
v1.on(‘write’, function(param) {console.log(‘V1:’, param[0]);});
var term = new blynk.WidgetTerminal(3);
term.on(‘write’, function(data)
{
term.write(‘Je suis votre compagnon PiAblon : version rucher \n’);
term.write(‘votre demande :’ + data + ‘\n’);
});
these test program work perfectly with Pi with Ubuntu Mate
the same program with same Pi harware with raspios-bullseye generate erors.
see under the logs of the tests
/******************************************************
os → 2021-10-30-raspios-bullseye-armhf-full
//*****************************************************
Blockquote/
pi@raspberrypi:~ $ cd blynk_app
pi@raspberrypi:~/blynk_app $ node rucher.js
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/
Give Blynk a Github star! => GitHub - vshymanskyy/blynk-library-js: Blynk library for JS. Works with Browsers, Node.js, Espruino.
Connecting to TCP: 127.0.0.1 8081
events.js:305
throw err; // Unhandled ‘error’ event
Error [ERR_UNHANDLED_ERROR]: Unhandled error. (‘ECONNREFUSED’)
at Blynk.emit (events.js:303:17)
at Blynk.error (/usr/lib/node_modules/blynk-library/blynk.js:649:8)
at exports.TcpClient. (/usr/lib/node_modules/blynk-library/blynk.js:612:48)
at exports.TcpClient.emit (events.js:314:20)
at Socket. (/usr/lib/node_modules/blynk-library/blynk-node.js:59:14)
at Socket.emit (events.js:314:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
code: ‘ERR_UNHANDLED_ERROR’,
context: ‘ECONNREFUSED’
}
pi@raspberrypi:~/blynk_app $
//*********************************************************************
os → Ubuntu Mate 16.04 with update
//*********************************************************************
Blockquote
pi@pi-desktop:~/blynk_app$ node rucher.js
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
///_, /////_
/__/
Give Blynk a Github star! => GitHub - vshymanskyy/blynk-library-js: Blynk library for JS. Works with Browsers, Node.js, Espruino.
OnOff mode
Connecting to TCP: 127.0.0.1 8081
Connected
Authorized
I don’t know where is the problem. if you have ideas, thanks for answers.
Joël