I just getting started with Blynk and tried to setup a small example using the python lib on my raspberry pi.
After executing my example I was wondering why my device is still shown as offline and marked as never seen before. So I tried to debug and first thing I found is that the lib by default still tries to authenticate against blynk-cloud.com which is wrong if I did not misunderstood the information I found searching for my issue. Therefore I tried to configure the param to blynk.cloud which did not help either.
I also increased the connection timeout, but same result.
The device itself is connected to WiFi and has access to the internet.
I hope somewhere out there has an idea what else I could check.
import blynklib
from datetime import datetime
# Initialize Blynk
blynk = blynklib.Blynk('mhg67X...0',server="blynk.cloud", port=443)
print(blynk.connected())
print(blynk.connect(timeout=360))
print(blynk.connected())
while True:
blynk.run()
@FCS , that was a really good tip. So i manually installed the lib from that repo mentioned by you and now it says 1.0. Now the examples make sense as well
Thank you. That fixed my issue. My device is shown as online now
I actually saw that repo, but used normal pip install which installed version 0.2.0. So maybe some hint that if you want to use it as 1.0.0 you need to run a manual pip install or something like that would be nice as well.