Issues when using simultaneously ble and asyncio.start_server #16070
Unanswered
jeanlaroche
asked this question in
ESP32
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using an ESP32 board, flashed with ESP32_GENERIC-20240602-v1.23.0.bin
I'm trying to use simultaneously
Things are OK if I use one or the other, but if I use both at the same time, after a few http requests to the server, the server gets stuck (apparently in the call writer.awrite(), but with no exception being raised). ble scanning still works but the http server is then hosed.
I've tried many different things, to no avail (reducing the scan duration, using semaphores to try to prevent scanning and serving operations to happen "simultaneously, using a higher level ble library", etc). But nothing works.
Interestingly enough the same code works perfectly well on an esp32-C3.
Does this ring a bell with anyone? Any idea how I could avoid this issue?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions