Closed williamesp2015 closed 8 years ago
Hi @williamesp2015,
Congratulations on entering first issue on this repository :smile:
You have version 13 of framework-arduinoespressif which is the same that I have. The only difference in s/w I see now is Windows version - you have Windows 10 and I have Windows 7.
Basing on the logs and description web sockets are unable to connect at all from your PC to ESP. If they do, you would see a message on ESP like:
Open http://192.168.1.114/ to see the scope
[0] Connected from 192.168.1.101
[0] get Text: Hallo from Browser :-) Tue Jul 12 2016 19:12:26 GMT+0200 (Central European Daylight Time)
[0] get Text: ping
I guess this may be some security / blocking by a firewall or maybe some compatibility issue.
Unfortunately I do not have Windows 10 to check. I will try to upgrade my PC to Windows 10 to replicate this issue.
Krzysztof
@williamesp2015,
I have installed Windows 10. EspScopeA0-Delta works out of box with Microsoft Edge web browser.
I was thinking about enabling debugging to have some more clues why it does not work for you. Before doing so I propose couple of simple tests:
Verify if your router or firewall is not filtering out websocket's traffic on port 81. You should be able to check it on http://portquiz.net/ by entering http://portquiz.net:81
If port 81 is not filtered out, then you should see a message like:
Check if websockets are working at all with your web browser. You can do it e.g. on https://www.websocket.org/echo.html
For me result is as follows:
Verify independently if websockets out of web browser do communicate with EspScopeA0-Delta by following "Creating your own test" on the above web page.
To do so replace var wsUri = "ws://echo.websocket.org/";
with var wsUri = "ws://192.168.1.114:81";
(substitute 192.168.1.114
with IP of your ESP).
Successful test looks as follows:
I wonder what will be the results for you.
Good luck :smile:
Krzysztof
I really appreciate your help. All the tests results were OK and also I was changing host name in the websocketserver.h and returned to arduino but no success.
GOOD NEWS. I deleted the project and imported to PlatformIO a fresh project, changed SSID and password, It is working very nice. Thank you very much
This is GREAT NEWS! I am happy it works for you. Thank you for update :smile:
Hi Krzysztof, I think for faster communication when using external ADC, binary data would be the ultimate option. Do you have any suggestion for modify to binary using webSocket.sendBIN?
Hi @williamesp2015,
Binary data transfer is on my "To Do" list planned for Golf version. I would start with MINKO GECHEV'S BLOG.
Krzysztof
@krzychb ...... Connected, IP address: 192.168.1.159 WebSockets started HTTP server started Open http://192.168.1.159/ to see the scope //////////////////////////////// webpage shows chart, message box, Host: ws://192.168.1.159:81 Connect ... but immediately after click on connect says disconnected in red color. I couldn't past screenshot ///////////////////// PS C:~PlatformIo\EspScopeA0> platformio platforms show espressif espressif - Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips wh
ich are widely used in mobile devices and the Internet of Things applications. [ https://espressif.com/ ]
Package: toolchain-xtensa Alias: toolchain Version: 2
Installed: 2016-06-30 18:36:18
Package: tool-esptool Alias: uploader Version: 7
Installed: 2016-06-30 18:49:24
Package: tool-mkspiffs Alias: uploader Version: 1
Installed: 2016-06-30 18:51:01
Package: framework-arduinoespressif Alias: framework Version: 13
Installed: 2016-06-30 18:49:50
Package: ldscripts Version: 23 Installed: 2016-06-30 18:49:50 PS C:~PlatformIo\EspScopeA0> /////////////////////// IE version 11.0.32 //////////////////// Windows 10 Thank you