Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simultaneously run MicroWebCli and MicroWebSrv? #6

Open
cyrils opened this issue Oct 1, 2022 · 1 comment
Open

Simultaneously run MicroWebCli and MicroWebSrv? #6

cyrils opened this issue Oct 1, 2022 · 1 comment

Comments

@cyrils
Copy link

cyrils commented Oct 1, 2022

I use both MicroWebSrv and MicroWebCli in Raspberry Pi Pico W. Since Pico has two cores, I run MicroWebSrv with the threaded=True option. However All of my MicroWebCli network calls fail with error [Errno 115] EINPROGRESS. If I do not run server then it works fine. Any idea how to run server and make other network calls at the same time?

@jczic
Copy link
Owner

jczic commented Oct 3, 2022

Hi @cyrils, could you try that at the beginning of your code to increase your stack size (8x1024 or 6x1024...) :

from _thread import stack_size
stack_size(8*1024)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants