Dear Sara,
Your ESP WebServer tutorial is fantastic, it gives me so many information and success!!!
All codes and samples are perfect, without any mistyping 🙂 Works immediately…so thank you so much for your high quality product!
Now I am a bit stucked with your 2.3 Tutorial of controlling ESP8266 board GPIO via WebSocket.
The code is working only if I use the board connected to my PC’c USB port to power it, but it does not work correctly if I try to reach the server from mobile surface, although, it is connected to the same WiFi local network, or it cannot be reached even from my PC if the board is powered independently.
HTML index page appears, but cannot control the GPIO. If I control the GPIO via PC, the HTML is not refreshed on mobile, but if I refresh mobile browser screen, it gives the correct actual state.
I try both your code (copy/paste) and my independent typing, but unfortunately, with the same result…
Where do you think I should begin the debugging? What could be the solution?
Thank you for your kind reply in advance.
Zoltán
….one more thing….
In VSCODE Terminal window shows if I connected with my PC as the #1 client, but mobile client has not been recognized, however, after loading and refreshing the screen it shows the correct status.
Hi.
Does this happen only with WebSocket tutorials?
What web browser are you using?
Do you have any antivirus installed on your devices that might be blocking the connection? Or any plugin on the web browser?
Regards,
Sara
Hi Sara,
Yes, it happens only with Websocket (all websocket tutorials with both boards).
Browsers: PC: MS Edge,Mobile: Samsung Internet Browser under Android.
PC is protected by Windows Firewall.
I don’t know about any special plug-in under the browser.
Automatic data refreshing does not work with websocket, but initial page loading is correct, and it shows the correct GPIO state after each refreshing of the page, but in the termnal window there are no sign of any registration about websocket connection of new clients.
Zoltán
Hi.
Can you open the JavaScript console on the browser and see if there is something wrong?
Regards,
Sara
Hi Sara,
Good news…
I tried to connect from laptop, it is working.
Again there is still no succes with mobile Samsung Internet Browser, so I made a trial with mobile Chrome browser, It is working :)))
So now I have to find only the reason why Samsung browser refuses working with websocket…
Thank you if you have ideas for that..
Zoltán