Getting disconnected from webrepl when creating 2 threads
Posted: Tue Jun 30, 2020 2:45 am
Hello,
I have tried the following simple threading program on the esp32 board via webrepl.
>>> import _thread
>>> def bar():
... _thread.start_new_thread(foo, (10, 200))
... _thread.start_new_thread(foo, (200, 400))
...
>>> bar()
I got disconnected from webrepl everytime I ran bar().
I understand _thread is still experimental, but this seems quite basic though.
Running 1 thread works fine btw.
a-ha
I have tried the following simple threading program on the esp32 board via webrepl.
>>> import _thread
>>> def bar():
... _thread.start_new_thread(foo, (10, 200))
... _thread.start_new_thread(foo, (200, 400))
...
>>> bar()
I got disconnected from webrepl everytime I ran bar().
I understand _thread is still experimental, but this seems quite basic though.
Running 1 thread works fine btw.
a-ha