krzychb / EspScopeA0

On-line wave-forms of ESP8266's A0 in a web browser using web sockets
GNU Lesser General Public License v2.1
43 stars 13 forks source link

On-Line Fast Websocket transfer #3

Open williamesp2015 opened 8 years ago

williamesp2015 commented 8 years ago

Hi, I am wondering if possible to test on a free host, using websocket and display data on a web.

krzychb commented 8 years ago

Hi @williamesp2015,

What for would you use the free host?

Version Delta of this application has a web server and an ESP loaded with it is the host already. If you expose it to internet, then you will be able to display data on a web.

williamesp2015 commented 8 years ago

Hi @krzychb,

Thank you very much. When we upload the data directory to a web, require to change IP and then connect to ESP with same internet access, but from other locations can not access to that ESP. Do you have a solution for this problem? Thank you

krzychb commented 8 years ago

@williamesp2015,

I am not sure if I understand what you mean by "data directory to a web".

If you expose ESP to internet, it will have specific IP address (or even a domain name like http://esp-scope.org :smile:). This IP address (or domain mame) should be then entered here

williamesp2015 commented 8 years ago

Hi @krzychb, If I change ws://192.168.1.159:81 to ws://http://mydomainname.org:81 or ws://www.mydomainname.org:81 or use original index.html (hostName.value = "ws://" + location.host + ":81";) can not connect to the ESP because web server connects to ESP IP and in this case no one can access to EspScopeA0 from different location using Internet.