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

how to change to Blynk local server #18

Closed hznupeter closed 5 years ago

hznupeter commented 5 years ago

I've tried this project on my ESP32, it will work well on ESP32 connect to the blynk-cloud.com But when cahnge the server address to local server ,my server only have ip, no host name. I change the Line 216

self.conn.connect(socket.getaddrinfo("blynk-cloud.com", 80)[0][4])

to

self.conn.connect(socket.getaddrinfo("192.168.1.101", 80)[0][4])

or

self.conn.connect(socket.getaddrinfo("192,168,1,101", 80)[0][4])

All of these cant work

hznupeter commented 5 years ago
self.conn.connect(socket.getaddrinfo("192,168,1,101", 8080)[0][4])

worked!

vshymanskyy commented 5 years ago

v0.2.0 is released and available via pip: https://github.com/vshymanskyy/blynk-library-python/releases/latest