Comments (1)
Hello,
I'm having the exact same problem. Versions 2.0.11 and 2.0.10 produce this error. You can use my example too:
#include <WebServer.h>
#include <WiFiClient.h>
#include <WiFiAP.h>
const char *ssid = "test";
const char *password = "1234";
WebServer server(80);
void handleRoot(){
server.send(200, "text/plain", "Hi there!");
}
void setup() {
Serial.begin(115200);
WiFi.softAP(ssid, password);
delay(100);
IPAddress myIP = WiFi.softAPIP();
Serial.println(myIP);
Serial.println("Server started");
server.on("/", handleRoot);
server.begin();
delay(2000);
Serial.println("Server up");
}
void loop() {
server.handleClient();
delay(1);
}
Output:
load:0x40080400,len:3600
entry 0x400805f0
0.0.0.0
Server started
assert failed: tcpip_send_msg_wait_sem IDF/components/lwip/lwip/src/api/tcpip.c:455 (Invalid mbox)
Backtrace: 0x400835a1:0x3ffca6d0 0x4008b6e1:0x3ffca6f0 0x40090b61:0x3ffca710 0x400ed2c2:0x3ffca840 0x400fd6ad:0x3ffca870 0x400fd70d:0x3ffca890 0x400ecab1:0x3ffca8e0 0x400d4476:0x3ffca900 0x400d44f0:0x3ffca950 0x400d645d:0x3ffca970 0x400d27e5:0x3ffca990 0x400d924a:0x3ffca9f0
I've tried to completely erase the flash and reprogram the board with no success. Also, I've tried with version 1.0.6 and it works.
Edit:
In my case, the solution was to add this line, you may need to change some parameters for your specific case. I believe in the previous versions this was not needed.
WiFi.begin();
from arduinowebsockets.
Related Issues (20)
- Async with Socket.IO disconnects and reconnects repeatedly HOT 1
- Conflict when using with pn532. HOT 2
- WebSocketsClient - Return in Void-Function and also toString not found? HOT 3
- Connecting as a client to another ESP8266 hosting Async websocket server is failing on long messages. HOT 1
- Serial Monitor Garbage datas
- Can we describe the behavior of disconnect/autoreconnect and according action HOT 2
- Disconnection detection issue HOT 11
- The error code is not compiled: 'class WiFiServer' does not have a member named 'accept' HOT 4
- Cannot connect to Socket.IO serve HOT 1
- Can't find WiFi.h and WiFiClientSecure.h HOT 2
- Compilation error: exit status 1
- Sadly it's crashing all over the place
- Clinet Suddenly not responding
- Receive BINARY_EVENT on ESP32 Socket.IO client
- esp32 wss disconnects randomly with errors
- ATMEGA websockets failing on server with bad mask
- If I put a delay in the loop, it stopped connecting to the server HOT 1
- examples/esp8266_pico/WebSocketServer example does not work on PicoW
- WebSocket disconnects on large payload WStype_TEXT HOT 4
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.