-
Notifications
You must be signed in to change notification settings - Fork 549
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The error code is not compiled: 'class WiFiServer' does not have a member named 'accept' #865
Comments
Аналогичная ошибка. |
I replaced accept() with available():
Compilation is ok and initial work also. I can connect to the http://192.168.4.1 and put the WiFi SSID/Password. Edit: going to try Serial communication. |
I have this same problem. Since it was working before I think it is a problem with a new version. I will look further into it later. For now I was able to fix it pointing my dependency directly to the version 2.4.0
|
In my case this was happened in vise versa: The library has not trouble on ESP32, but gave an introduced warning on Raspberry Pico W. The Arduino IDE version is 2.3.2 |
Arduino: 1.8.19 (Windows 10), Плата:"LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Legacy (new can return nullptr), All SSL ciphers (most compatible), 4MB (FS:2MB OTA:~1019KB), v2 Lower Memory, Disabled, None, Only Sketch, 921600"
C:\Users\USER\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp: In member function 'void WebSocketsServer::handleNewClients()':
C:\Users\USER\Documents\Arduino\libraries\arduinoWebSockets-master\src\WebSocketsServer.cpp:658:86: error: 'class WiFiServer' has no member named 'accept'
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->accept());
exit status 1
Compilation error for the board LOLIN(WEMOS) D1 R2 & mini.
I do not know how to fix it. Please help me :-(
The text was updated successfully, but these errors were encountered: