micropython-lib
micropython-lib copied to clipboard
Core Python libraries ported to MicroPython
When connecting a server running this php sample ``` ``` if you view this page in a web browser or in curl you will only get `OK`, however `urequests.get` ignores...
Instead of the bespoke tools/codeformat.py script, it would probably be better to move to the popular [pre-commit](https://pre-commit.com) tool to invoke all linting/formatting/static-analysis tools. Github Actions workflows would also need to...
(This is a design proposal, circulated for discussion, suggestions, and constructive criticism. Please comment on this issue.) ## User Story "As a new MicroPython user, I want to quickly get...
Hello, I'm using a raspberry pi pico w to connect to a mqtt server. The clean sesssion connection works pretty well but when I try to use client.connect(False) it returns...
Usage: `await uaiohttpclient.request(method,url)` https://github.com/micropython/micropython-lib/blob/7128d423c2e7c0309ac17a1e6ba873b909b24fcc/micropython/uaiohttpclient/uaiohttpclient.py#L65 ``` method = "POST" url = "http://10.0.0.69:8080/input.php" header = "Content-Type: application/json; charset=utf-8" data = '{"foo":"bar"}' ``` Function has no way to take data or set the...
In CBOR library there are a couple of unidentified functions such as: `unpack_float16` ```python def decode_float16(decoder): payload = decoder.read(2) return unpack_float16(payload) ``` and `undefined` ```python special_decoders = { 20: lambda...
Examples in https://github.com/micropython/micropython-lib/blob/master/micropython/bluetooth/aioble/README.md use `aioble.PUBLIC` which, according to https://github.com/micropython/micropython-lib/blob/master/micropython/bluetooth/aioble/aioble/__init__.py should probably be `aioble.ADDR_PUBLIC`.
I recently created the github action [install-micropython](https://github.com/marketplace/actions/install-micropython), making it much simpler to obtain a micropython executable in Github Actions. I can volunteer to add a workflow to run unit tests...
Per [RFC1738](https://www.ietf.org/rfc/rfc1738.txt) you can supply a username and password for basic auth as part of the URL in the format: `http(s)://username:[email protected]` however urequests interprets any colon following the protocol to...
I was supposed to post the changes made for my entry in the database in Firestore, when this error popped up: ``` { "error": { "code": 400, "message": "Document parent...