Search found 463 matches
- Mon May 10, 2021 2:25 pm
- Forum: General Discussion and Questions
- Topic: Put all modules into a single file
- Replies: 5
- Views: 3124
Re: Put all modules into a single file
Also, what you can do is put all the files you want to upload into an uncompressed TAR archive and then use the utarfile module from micropython-lib and the following code to extract it on your MicroPython board: import os from utarfile import TarFile def exists(path): try: _ = os.stat(path) except:...
- Mon May 10, 2021 12:08 pm
- Forum: ESP8266 boards
- Topic: Issue connecting sockets to some websites
- Replies: 8
- Views: 8269
Re: Issue connecting sockets to some websites
See also Damien's remark on this PR in the linked issue https://github.com/micropython/micropyt ... -690840497. I think it's unlikely that this gets merged in the current state, i.e. with mbedtls being the default. But that's just my conjecture.
- Mon May 10, 2021 12:02 pm
- Forum: General Discussion and Questions
- Topic: Put all modules into a single file
- Replies: 5
- Views: 3124
Re: Put all modules into a single file
On the ESP32 you could use the OTA features to send a whole filesystem as partition data and write that to the flash. This technique is used for example here : https://github.com/tve/mqboard/tree/master/mqrepl
- Fri May 07, 2021 11:57 pm
- Forum: ESP32 boards
- Topic: NotImplementedError: Redirects not yet supported
- Replies: 5
- Views: 3313
Re: NotImplementedError: Redirects not yet supported
You might be interested in my improved version of urequests, which supports redirects:
viewtopic.php?f=15&t=10454
viewtopic.php?f=15&t=10454
- Fri May 07, 2021 7:05 pm
- Forum: Programs, Libraries and Tools
- Topic: TrickLED - NeoPixel WS2812B Animation Library
- Replies: 15
- Views: 36724
Re: TrickLED - NeoPixel WS2812B Animation Library
@Spotlightkid, good thought! I tried that but it threw the same error. Does anyone have any setup instructions and examples that run reliably on MicroPython 1.15 and an ESP32?? I had a look at the trickLED code and I can't see how you would get the errors you get if you have the package installed c...
- Thu May 06, 2021 3:29 pm
- Forum: Programs, Libraries and Tools
- Topic: How to send file using urequests.
- Replies: 8
- Views: 10306
Re: How to send file using urequests.
In my mrequests project (bascially urequests with many fixes and improvements) I have an example HTTP upload script:
https://github.com/SpotlightKid/micropy ... /upload.py
https://github.com/SpotlightKid/micropy ... /upload.py
- Thu May 06, 2021 2:55 pm
- Forum: Programs, Libraries and Tools
- Topic: TrickLED - NeoPixel WS2812B Animation Library
- Replies: 15
- Views: 36724
Re: TrickLED - NeoPixel WS2812B Animation Library
You probably need to copy the whole trickLED directory with its content to your ESP32 board's flash. Not just the *.py files in it.
- Tue May 04, 2021 5:36 pm
- Forum: Programs, Libraries and Tools
- Topic: mrequests easy HTTP client library
- Replies: 0
- Views: 2717
mrequests easy HTTP client library
Hi all, in the past I've often seen users struggle with urequests from micropython-lib, because it lacks many features often needed when making HTTP requests or is inconvenient to use, and PRs trying to improve it have been ignored for years. So now I finally consolidated all the different versions ...
- Wed Feb 03, 2021 11:13 am
- Forum: General Discussion and Questions
- Topic: url decode
- Replies: 4
- Views: 14708
Re: url decode
def UrlPercent(aData: bytearray) -> str: ... That will also work and is a bit more terse, but behaves differently: a) doesn't take str b) returns str not bytes c) does not handle invalid escape sequences c) additionally does '+' replacement. It is also slower, even if the '+' replacement (which sho...
- Fri Jan 22, 2021 7:47 pm
- Forum: Other Boards
- Topic: WeAct STM32F411CEU6 black pill
- Replies: 79
- Views: 169766
Re: WeAct STM32F411CEU6 black pill
This is apparently an update of this variant of the Black Pill: https://stm32-base.org/boards/STM32F401CCU6-WeAct-Black-Pill-V1.2 You need to compile your own firmware for this variant of the Black Pill. You should be able to use this board definition from WeACT: https://github.com/YXZhu/micropython...