BLYNK
BLYNK.IO       📲 GETTING STARTED       📗 DOCS       👉 SKETCH BUILDER

Micropython on ESP32 [Errno 104] ECONNRESET

I connect to the new blynk cloud with


/ _ )/ /_ _____ / /__
/ _ / / // / _ / '/
/
//_, /////_
/
__/ for Python v1.0.0 (esp32)

with blynk lib from https://github.com/vshymanskyy/blynk-library-python/blob/master/BlynkLib.py

code is:
blynk = BlynkLib.Blynk(BLYNK_AUTH, buffin=2048, heartbeat=100, server=“fra1.blynk.cloud”, insecure=True)
and appears to be working, but when it comes to writing a virtual pin then it ends up with:

Starting Blynk…
Traceback (most recent call last):
File “main.py”, line 1399, in
File “main.py”, line 741, in read_virtual_pin_HDC1080
File “BlynkLib.py”, line 84, in virtual_write
File “BlynkLib.py”, line 117, in _send
File “BlynkLib.py”, line 249, in _write
OSError: [Errno 104] ECONNRESET

Any ideas?
Thanks.

And the rest of your code?

Pete.

The code connects to WiFi with no problem, sends authentication to BLYNK, reads and processes sensors, and when it invokes ‘blynk.virtual_write(20, temperature)’ defined as
def virtual_write(self, pin, *val):

    self._send(MSG_HW, 'vw', pin, *val)

in blynklib, crashes with the error mentioned (connection problem).

So the question is has anybody managed to get the ESP32 working with the new BLYNK using PYTHON?? If yes then I can continue trying to sort it out.

You only need to search the forum to find the answer to that question.

Pete.

I did and I did not solve my problem (there is no reference in the current version 1 of the library in any case).