Seeed-Studio / Wio_Link

Wio_Link 8266
http://seeed-studio.github.io/Wio_Link/
182 stars 64 forks source link

Wio Link Doesn't connect to private server #47

Closed kp372 closed 7 years ago

kp372 commented 7 years ago

I have setup a private server on aws as explained here. https://github.com/Seeed-Studio/Wio_Link/wiki/Server-Deployment-Guide

Installation worked smoothly from above guide. I am able to create an account and login into my server through wio link app but somehow my wio link device doesn't connect to the server. I know this from the blue led blink once quickly then off 1s suggesting its in connecting to the server state.

I have tried to connect my wio link to seeed server and it works well. Do you have any idea which I can try? Is there any web based interface to the server which I can test?

awong1900 commented 7 years ago

Can you confirm the AWS enable the 8000 port? As wio device connect server with TCP 8000 port. below code is about port info.

server.py

    app = myApplication(conn, cur)
    http_server = HTTPServer(app, xheaders=True)
    http_server.listen(8080)

    app2 = myApplication_OTA(conn, cur)
    http_server2 = HTTPServer(app2)
    http_server2.listen(8081)

    tcp_server = DeviceServer(conn, cur, 'xchange')
    tcp_server.listen(8000)

    tcp_server2 = DeviceServer(conn, cur, 'ota')
    tcp_server2.listen(8001)
kp372 commented 7 years ago

Thank You for your reply. Great, it is working now!