I’m trying to run my rpi with a Blynk 2.0 project. I use an ethernet connection. My code is in python. I just want to test the basic write code.
Problem, when I execute my code it gets stuck. So I try ctrl+c to stop it. And when I stop the program, an unhandled error is displayed, in addition to the KeboardInterrupt logic.
Okay thanks I’ll try this soon.
I also had a problem of stability of connection with a NodeMCU and I see in the recent commit ‘fixed socket disconnecting every 2 min’ of the python library (even if the esp of the nodemcu is programmed in cpp), is the Blynk v1.2.0 library on the Arduino IDE up to date concerning this problem?
All right, this is just a guess.
Concerning python, I encountered several other problems, which I was able to solve:
How to install the blynk-library-python library
Installing the library for the user didn’t work for me (parameter --user), so I removed it. You also have to be careful to use pip3 and not pip as indicated on the github.
To install the library I did: sudo git clone https://github.com/vshymanskyy/blynk-library-python.git . in the current folder.
Then sudo pip3 install -e .
I also had a problem with the @blynk.VIRTUAL_WRITE event. This event was proposed in the example on the github. You have to use : @blynk.on("V<pin>") instead of @blynk.VIRTUAL_WRITE(<pin>)