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

Adapt to ports/unix MicroPython using select.poll #49

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

nbyoung
Copy link

@nbyoung nbyoung commented Sep 20, 2020

Thanks, Jean-Christophe, for this great web server. It makes MicroPython very valuable, especially for our application.

The default build of ports/unix MicroPython does not provide select.poll. For consistency, this pull request replaces select.select with select.poll for all MicroPython ports. The CPython execution remains unchanged with select.select.

It has been tested using the demo application on CPython, and MicroPython ports/unix and ports/stm32.

The second commit changes main.py to warn when / fails to resolve with the default RootPath.

@J4Chard
Copy link

J4Chard commented Feb 27, 2021

Thanks for submitting this PR, Norman! I started trying to fix errors in XAsyncSockets.py on my own and then decided to look through unmerged PRs when I found I needed to peel back more than one layer of this onion. After applying your changes, I am very happy to see that I run MicroWebSrv2 2.0.6 in micropython 1.14!

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

Successfully merging this pull request may close these issues.

None yet

2 participants