Q1 Why that some esp8266 webserver have slow response?
When button is press on the webpage it took a little while before it respond.
Q2 Whenever I try to compile a websocket server code for esp8266 with this function “ws.cleanupClients()” in the loop it doesn’t compile and I get and error of ” the function does not exist in the library’. But if I remove the function it compile successfully.
Did they update the library?
So that now we don’t need to include the function.
What web server example do you say that has a slow response?
Do you have a good wi-if signal?
Can you tell me the example that gave you the websocket error?
2.3 WebSocket Web Servers : Control Output(ON/OFF Buttons), page 261.
I have a good Wi-Fi reception.
It’s the first example of the WebSocket control of the ON/OFF button that I got the slow response. So I don’t know whether because I removed the function of”ws.cleanupClients()” that causes the slow response. But with the “ws.cleanupClients()” it doesn’t compile at all.
Start your code here
I’ve just tested the project again, and everything is working as expected, and the response is quite fast.
The ws.cleanupClients() compiles just fine.
Can you double-check your platformio.ini file? How does it look?
Can you paste the complete compiling error?
What is the esp8266 board model that you are using?
I am using Arduino IDE maybe that’s why.
I will try it with platform io. Thank you so much indeed
I should work with both IDEs. Double-check that you have the latest version of the libraries installed and the ESP8266 boards add-on to make it work using Arduino IDE.