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

add reconnect on send, read,run function #81

Open denofiend opened 11 months ago

denofiend commented 11 months ago

add reconnect on send, read,run function

ebolisa commented 11 months ago

@denofiend Hi, have you tried the modified lib on a Rpi Pico? I get this error:

Connecting to lon1.blynk.cloud:80...
Traceback (most recent call last):
  File "<stdin>", line 16, in <module>
  File "BlynkLibMod.py", line 293, in __init__
  File "BlynkLibMod.py", line 87, in __init__
  File "BlynkLibMod.py", line 312, in connect
  File "BlynkLibMod.py", line 328, in create_socket
AttributeError: 'module' object has no attribute 'IPPROTO_TCP'

The original lib does work though.