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

MicroPython port #11

Open
tacker66 opened this issue Feb 9, 2024 · 4 comments
Open

MicroPython port #11

tacker66 opened this issue Feb 9, 2024 · 4 comments

Comments

@tacker66
Copy link

tacker66 commented Feb 9, 2024

I am trying to call the local API from MicroPython using only the requests module.
My approach works with CPython but needs a patched requests module for MicroPython. I raised an issue in micropython-lib describing the problem. Perhaps you could help here?

@mawoka-myblock
Copy link
Collaborator

I'm not a huge micropython fan and it's really annoying to get all the files on the esp. This also doesn't have much to do with this library. Wouldn't it just be possible to replace these lines with another request-client?

@tacker66
Copy link
Author

tacker66 commented Feb 9, 2024

I created this issue because you stated that you are working on a MP port ;-)
Problem is there is no urllib3 or aiohttp for MP and requests consist only of a minimal implementation for MP.
BTW: With the new mip installer bringing files to an ESP32/PicoW is quite easy (see my link above)..

@mawoka-myblock
Copy link
Collaborator

Oh, forgot the first part 🙈

But the minimal implementation of requests should be sufficient as we aren't using any advanced features.

@tacker66
Copy link
Author

tacker66 commented Feb 9, 2024

Yeah, but the problem seems to lie in the underlying MP socket implementation (at least my guess).

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

No branches or pull requests

2 participants