vshymanskyy / blynk-library-python

Blynk library for Python. Works with Python 2, Python 3, MicroPython.

Home Page:https://blynk.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to change to Blynk local server

hznupeter opened this issue · comments

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

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

worked!