vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.

Home Page:https://blynk.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BrokenPipeError

kristonelka opened this issue · comments

python3 - Function blynk.virtual_write() irregularly ends with Broken Pipe Error. I have no ide how to fix or prevent it.
b4c387287994a5fb69047a0edf837823e61cd8ed

commented

You can upload your script to GitHub and share the link so we can take a look at it.
If you don't like coding, I'd suggest that you take a look at Node-RED and the Blynk plugin instead. It's a perfect way to use the Raspberry Pi with Blynk with almost no coding.

I would be interested to know how your comment about “the easy coding” helps to solve the problem. Node Red is unintuitive that I refuse to try it.

commented

May I ask you why?
Have you ever tried Node-RED?

I have, I am not comfortable with using it.
This is the code. The broken pipe error usually occures on the line with red dot.

image

commented

Does it work properly if you comment that line out?

commented

What have you done to troubleshoot it?
Just print the data you want to send and see if it’s correct. If it is, send some bogus data to Blynk. In other words, try to pin point the problem.