micropython-lib
micropython-lib copied to clipboard
Core Python libraries ported to MicroPython
## Description: This is an example for `ssd1306` package using `I2C` protocol. It displays current date and time unpacked from `time.localtime()` function on the `ssd1306` OLED display.The output will look...
The urequests module is still using HTTP/1.0 for HTTP requests: line 39 in micropython-lib/micropython/urllib.urequest/urllib/urequest.py on the master branch: [`s.write(b" HTTP/1.0\r\nHost: ")`](https://github.com/micropython/micropython-lib/blob/master/micropython/urllib.urequest/urllib/urequest.py#L39) Since a host header is included, can this be...
The [`check_msg()`](https://github.com/micropython/micropython-lib/blob/master/umqtt.simple/umqtt/simple.py) function uses [`socket.setblocking()`](https://micropython.org/resources/docs/en/latest/wipy/library/usocket.html#usocket.socket.setblocking) to check for pending messages without blocking. While working fine with normal sockets this leads to an `NotImplementedError` when used with a ssl connection. To...
Currently when using `ping` the response is swallowed which makes it not particularly useful. This PR adds a flag `ping_response_received` to the client which is set to `True` if a...
The function `binascii.b2a_base64()` returns a `bytes`. Here needs a `string` Otherwise, the value of `Sec-WebSocket-Key` in the headers will be `b''`. It means there will be `b'` at the beginning...
Now works due to https://github.com/micropython/micropython/pull/10844#issuecomment-1554135154. Code is still valid with older versions of micropython, just the actual rtruediv operations won't work (they previously still didn't work, so no change in...
Without the fix, the client submits a header formatted as bytes: ``` Sec-WebSocket-Key b'aaaaaaaaaaaaa' ``` resulting in the server rejecting the connection (I use the python websocket module in the...
It's no longer necessary since PR #[10724](https://github.com/micropython/micropython/pull/10724) was merged in to MicroPython.
Upstream the RotatingFileHandler library from pycopy.