micropython-lib
micropython-lib copied to clipboard
Core Python libraries ported to MicroPython
it would be nice if someone would add the `[v1.22.2](https://github.com/micropython/micropython/tree/v1.22.2)` tag to this repo as well. I assume it would be to 7cdf70881519c73667efbc4a61a04d9c1a49babb, same as v1.22.0 and v1.22.1.
This PR allows for logging handlers to be added to the root logger and then used by non-root loggers that don't have their own handlers. It replaces #750 (in which...
I hadn't used this feature for a while, and realised there's one confusing element of it not previously mentioned in the docs.
at the line below the example waits for the connected client to disconnect. What is not obvious is that awaiting this `disconnected()` call _causes_ an disconnect after 60 seconds! https://github.com/micropython/micropython-lib/blob/8058b2935bad15f930a45a5f5f640c8da8aaf1f2/micropython/bluetooth/aioble/examples/temp_sensor.py#L58...
The aioble security module defines several very important constants needed for pairing such as ``` _IRQ_ENCRYPTION_UPDATE = const(28) _IRQ_GET_SECRET = const(29) _IRQ_SET_SECRET = const(30) _IRQ_PASSKEY_ACTION = const(31) _IO_CAPABILITY_DISPLAY_ONLY = const(0)...
I'm trying to run the l2cap_file_client.py and l2cap_file_server.py examples from https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble on my Pico-W. I'm currently running `MicroPython v1.22.0-preview.236.ge1a7aa23f on 2023-12-09; Raspberry Pi Pico W with RP2040` It sounds like...
Often when creating asyncio micropython applications that are growing in size, I get to a point where things start to run a bit sluggish and it can be hard to...
Hi, I'm trying to use a Pi Pico W to connect to the [Apple Media Service](https://developer.apple.com/library/archive/documentation/CoreBluetooth/Reference/AppleMediaService_Reference/Specification/Specification.html#//apple_ref/doc/uid/TP40014716-CH1-SW7), but I'm running into a few issues. ```python async def connectBLE(): connection = await...
I am trying to call ```requests.get(some_REST_API_call)``` on a Pico W (with v1.22.1) but this call blocks infinitely. Using a timeout or non-blocking mode ```(timeout=0)``` doesn't help. The call works with...
MicroPython's senml module conflicts with https://pypi.org/project/senml/ when it's installed on PC (with pip) it overwrites/gets merged with pypi's senml module, so it needs to be renamed. We originally assumed that...