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

ssl error on connection #56

Open defaliz opened 3 years ago

defaliz commented 3 years ago

hi, i use the script example 01_virtual_write.py on my local server on a pi zero with the code blynk = BlynkLib.Blynk(BLYNK_AUTH, server='x.x.x.x', port=8080) And i have the error below.. i don't know why because i use the same code on another pizero whitout error.. can you help ? best regards Alain

Connecting to x.x.x.x:8080... Traceback (most recent call last): File "01_virtual_write.py", line 19, in blynk = BlynkLib.Blynk(BLYNK_AUTH, server='13.59.253.251', port=8080) File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 214, in init File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 81, in init File "build/bdist.linux-armv6l/egg/BlynkLib.py", line 240, in connect File "/usr/lib/python2.7/ssl.py", line 369, in wrap_socket _context=self) File "/usr/lib/python2.7/ssl.py", line 599, in init self.do_handshake() File "/usr/lib/python2.7/ssl.py", line 828, in do_handshake self._sslobj.do_handshake() socket.error: [Errno 0] Error

Un-ka commented 3 years ago

Change port BlynkLib.Blynk(BLYNK_AUTH, server='x.x.x.x', port=443)

defaliz commented 3 years ago

great un-ka ! that works now.. regards