Comments (4)
Can you look in the browser's console or network tab to see how the websocket connection appears there?
I found the problem: this problem happen with the ESP32-S3 when I use SoftAP and STA mode simultaneously. In this case even to connect to WiFi from SmartPhone/notebook to ESP32-S3 AP mode is dificult (some times network goes down, or it is slow to connect and ping is very high) - I think that both active running ESP32-S3 multiplex the radio time between STA and SoftAP. But if I disable the STA mode, AP mode works very stable with Microdot, and vice-versa. So, can we to consider that this is not a problem of Microdot and we can close this issue, right?
from microdot.
@miguelgrinberg I forgot to tell you a important information:
When I put 192.168.4.1 and press enter on the browser, Microdot receive the HTTP connect. But when I put data in the text edit and press enter, Microdot do not receive data.
In my application I have a log when I put 192.168.4.1 on browser and press enter:
DEBUG | | 0158 __main__.http_server | Connected from host: 192.168.4.1
DEBUG | | 0030 ws_process._ws_connect | STARTED | Params: ws = <WebSocket object at 3def08d0>
DEBUG | | 0030 ws_process._ws_connect | STARTED | Params: ws = <WebSocket object at 3def08d0>
I have a log as well when receive a websocket message, but nothing is printed when this bug happen.
from microdot.
@miguelgrinberg Hello, I have one more information:
New case: After some minutes trying sending data on text edit and not receiving data back (and nothing printing on microdot receive websocket), now even when I refresh browser (on ip 192.168.4.1) is not working anymore, I mean that print above of http server stopped printing and the Microdot WebSocket Demo
do not show anymore, but the SmartPhone still connected to ESP32-S3 via SoftAP and pinging on it.
So, I did one more test with STA not stop anything at this moment. I enabled a AP where my application ESP32-S3 is ready to connect as STA. After ESP connected as STA, ESP receive IP 192.168.43.143, the same in all my tests as STA mode. But now I tried to open that ip (192.168.43.143) on the browser (as I always do) but do not open anything, like as the New case above, accessing via SoftAP - do not show the Microdot WebSocket Demo
via STA as well. I still can ping to 192.68.43.143 on my notebook/smartphone, but in all browsers do not open anymore the Microdot WebSocket Demo
. Is like as Microdot died, but I do no have any error message on console.
from microdot.
Can you look in the browser's console or network tab to see how the websocket connection appears there?
from microdot.
Related Issues (20)
- Create a "mini" Microdot with reduced features HOT 4
- WebSocket error (and disconnect ws client) when connected via AP and STA mode. HOT 5
- Error when making requests from a Micropython client to a Microdot server HOT 3
- Crashing when using öäü special chars in html input as form HOT 3
- WebSocket becomes unresponsive for slow sensors
- Int type in a url pattern does not handle negative numbers HOT 2
- No longer working on ESP8266 HOT 1
- "Generator raised StopIteration" error when sending static file from filesystem HOT 1
- When using asgi adapter, all header names and values are returned as binary instead of strings
- Network loss event handling HOT 1
- On ESP32: Out of memory with quite a basic setup? HOT 4
- BUG: ValueError: need more than 1 values to unpack HOT 1
- Memory Error in a basic hello world setup HOT 1
- UTF-8 decode error HOT 5
- Document access to ASGI scope
- Calling shutdown() throws error when there was no request made (using async WebSockets) HOT 8
- Please provide a port to CircuitPython HOT 2
- Microdot + ssl socket connection HOT 30
- render_template hangs when using microdot_asyncio HOT 5
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 microdot.