vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.
https://blynk.io/
MIT License
287 stars 98 forks source link

BrokenPipeError #70

Open kristonelka opened 1 year ago

kristonelka commented 1 year ago

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

John93-Blynk commented 1 year ago

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.

kristonela commented 1 year ago

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.

John93-Blynk commented 1 year ago

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

kristonelka commented 1 year ago

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

John93-Blynk commented 1 year ago

Does it work properly if you comment that line out?

ebolisa commented 1 year ago

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.