Replies: 1 comment
-
Yes, this is thread safe, or at least should be, to the best of my knowledge. Analysis of the backtrace/logs should indicate the location of the corruption you are seeing. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
is this library thread safe? I'm using scanning, server and client at the same time on ESP32-c3. Is it allowed to use it like this (pseudocode):
task1_server:
while(true)
if data_available:
notify_client()
task2_client:
while(true)
connect_to_server()
write_characteristic()
read_characteristic()
disconnect()
delay(...)
I'm getting heap corruption, but for now I did not pinpoint where or why it happens.
Best regards
Beta Was this translation helpful? Give feedback.
All reactions