Git Product home page Git Product logo

Comments (4)

beyonlo avatar beyonlo commented on September 23, 2024 2

Can you look in the browser's console or network tab to see how the websocket connection appears there?

Hi @miguelgrinberg

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.

beyonlo avatar beyonlo commented on September 23, 2024

@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.

beyonlo avatar beyonlo commented on September 23, 2024

@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.

miguelgrinberg avatar miguelgrinberg commented on September 23, 2024

Can you look in the browser's console or network tab to see how the websocket connection appears there?

from microdot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.