M
@Mario-Simunic
I'm running FW omega2p-v0.2.0-b186 on Omega2+
When I run My node.js script manually after startup, everythings fine until I dissable My WiFi router (to test reconection to blynk).
Then:
blynk.on('disconnect', function() { console.log("DISCONNECT"); });
doesn't happen.
After I anable WiFi again, serial Console puts message:
events.js:146
throw err;
^
Error: Uncaught, unspecified "error" event. (ECONNRESET)
at emit (events.js:144:17)
at Blynk.error (/usr/bin/blynk-library/blynk.js:589:8)
at null.<anonymous> (/usr/bin/blynk-library/blynk.js:552:48)
at emitOne (events.js:77:13)
at emit (events.js:169:7)
at TLSSocket.<anonymous> (/usr/bin/blynk-library/blynk-node.js:204:16)
at emitOne (events.js:77:13)
at TLSSocket.emit (events.js:169:7)
at emitErrorNT (net.js:1255:8)
at nextTickCallbackWith2Args (node.js:437:9)
So, there is no automatic connection status response.
Also, it looks like reconnection to Blynk server fails somewhere.
blynk.virtualWrite(v0, 0); // Does nothing, but it should update button in App connected to V0