Comments (4)
Аналогичная ошибка.
from arduinowebsockets.
I replaced accept() with available():
// WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->accept());
WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->available());
Compilation is ok and initial work also. I can connect to the http://192.168.4.1 and put the WiFi SSID/Password.
But after restart the web server is always returning: "Not Found:"
Edit:
ok, firmware update page is available (login required):
going to try Serial communication.
from arduinowebsockets.
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
Using PlatformIO you need to change you platformio.ini
file like this:
...
lib_deps=
https://github.com/Links2004/arduinoWebSockets#2.4.0
from arduinowebsockets.
I replaced accept() with available():
// WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->accept()); WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->available());
Compilation is ok and initial work also. I can connect to the http://192.168.4.1 and put the WiFi SSID/Password. But after restart the web server is always returning: "Not Found:"
Edit: ok, firmware update page is available (login required):
going to try Serial communication.
In my case this was happened in vise versa:
c:\Users\woodl\Documents\Arduino\libraries\WebSockets\src\WebSocketsServer.cpp: In member function 'void WebSocketsServer::handleNewClients()': c:\Users\woodl\Documents\Arduino\libraries\WebSockets\src\WebSocketsServer.cpp:649:95: warning: 'WiFiClient WiFiServer::available(uint8_t*)' is deprecated: Use accept(). [-Wdeprecated-declarations] 649 | WEBSOCKETS_NETWORK_CLASS * tcpClient = new WEBSOCKETS_NETWORK_CLASS(_server->available()); | ~~~~~~~~~~~~~~~~~~^~ In file included from C:\Users\woodl\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.7.2\libraries\WiFi\src/WiFi.h:8, from c:\Users\woodl\Documents\Arduino\libraries\WebSockets\src\WebSockets.h:220, from c:\Users\woodl\Documents\Arduino\libraries\WebSockets\src\WebSocketsServer.cpp:25: C:\Users\woodl\AppData\Local\Arduino15\packages\rp2040\hardware\rp2040\3.7.2\libraries\WiFi\src/WiFiServer.h:81:16: note: declared here 81 | WiFiClient available(uint8_t* status = nullptr) __attribute__((deprecated("Use accept()."))); | ^~~~~~~~~
The library has not trouble on ESP32, but gave an introduced warning on Raspberry Pico W. The Arduino IDE version is 2.3.2
from arduinowebsockets.
Related Issues (20)
- ATMEGA websockets failing on server with bad mask
- If I put a delay in the loop, it stopped connecting to the server HOT 2
- examples/esp8266_pico/WebSocketServer example does not work on PicoW
- WebSocket disconnects on large payload WStype_TEXT HOT 4
- Sensor read data doesn't change
- Add support for CA bundles
- SSL Connection not working
- Websocket Secure crashes when connection to webserver is opened HOT 1
- Question: Sudden reboots of ESP01
- Help needed: HOT 1
- Support for arduino rev4 wifi HOT 4
- WifClientSecure breaking on ESP8266?
- Library hangs on PICOW when WebSocketClient is allocated dynamically
- Secured Websocket server on ESP8266
- esp32 Arduino v3.0.4 changed NetworkClientSecur::setCACertBundle arguments HOT 4
- Piesocket demo connection error HOT 1
- Compatible with ESP-IDF? HOT 1
- Explicit dependencies HOT 1
- this library is missing an end() method
- [BUG]WebSocketServer crash on ESP32-C6 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduinowebsockets.