vshymanskyy / blynk-library-python

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

add reconnect on send, read,run function #81

Open denofiend opened 9 months ago

denofiend commented 9 months ago

add reconnect on send, read,run function

ebolisa commented 9 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.