ESP32 - problem with socket #13410
Unanswered
lipic
asked this question in
Core Development
Replies: 1 comment
-
For the 1st issue, maybe take a look at this #8326 (workaround included) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I would like to ask if you have ever encountered a similar problem. I am running several applications on ESP32 with MicroPython version 1.21.
In the first application,
there is a web server created using the Picoweb library. Running in parallel with it is Modbus TCP, implemented through the uModbus library. The problem occurs when the device is connected to Wi-Fi and a client is connected to Modbus TCP. If someone then tries to connect to the web server, the socket gets stuck, and the device stops responding to both Modbus TCP and HTTP requests. The rest of the program, however, runs without any problems.
Here is a part of the code:
In the second application,
I have a similar problem. Again, there is a web server running, written using the Picoweb library, and asynchronous MQTT, created with the mqtt_as.py library. When connecting to the web server, in most cases, there is an error in the MQTT connection, and the device is then unable to reconnect.
Do you know what might cause this? Is it possible that the disconnection from Wi-Fi is causing these issues?
Beta Was this translation helpful? Give feedback.
All reactions