Search found 463 matches
- Tue Sep 14, 2021 5:10 pm
- Forum: General Discussion and Questions
- Topic: [SOLVED] urequests + redirects
- Replies: 20
- Views: 18296
Re: [SOLVED] urequests + redirects
> since it seems the files are printed as copied to the same directory as I specify as source instead of the device. Sorry, I fail to understand the meaning of this sentence. Can you please rephrase it? Also, please not that I have bundled all my improvements to urequests.py into this library. Pleas...
- Thu Aug 12, 2021 5:43 am
- Forum: ESP32 boards
- Topic: urequests - any way to download files by chunks
- Replies: 7
- Views: 8603
Re: urequests - any way to download files by chunks
I have updated the link to the mrequests repo above.
- Wed Aug 11, 2021 7:39 pm
- Forum: ESP32 boards
- Topic: urequests - any way to download files by chunks
- Replies: 7
- Views: 8603
Re: urequests - any way to download files by chunks
Yes, looks good. But instead of setting the Authorization header yourself, you can just pass auth=(username, password) as a keyword parameter to mrequests.get().
Using response.save(filename, chunk_size) should ensure that only as much memory as is needed for chunk_size bytes is allocated.
Using response.save(filename, chunk_size) should ensure that only as much memory as is needed for chunk_size bytes is allocated.
- Wed Aug 11, 2021 6:12 pm
- Forum: ESP32 boards
- Topic: urequests - any way to download files by chunks
- Replies: 7
- Views: 8603
Re: urequests - any way to download files by chunks
Please show the actual code that doesn't work (please link to code, or copy and paste it exactly here, no screenshots or incomplete code) and also copy & paste the exact error message, if any.
- Sun May 30, 2021 8:26 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: How to read Map() function in micropython?
- Replies: 11
- Views: 26586
Re: How to read Map() function in micropython?
It's actually a built-in function (or rather a class acting like a function), which means you can use "map" for identifiers without getting a syntax error. You will then of course shadow the builtin function.
- Wed May 26, 2021 5:38 pm
- Forum: ESP32 boards
- Topic: What the best IDE for ESP32 micro python developing ?
- Replies: 13
- Views: 16149
Re: What the best IDE for ESP32 micro python developing ?
I hope this is irony.
- Sat May 22, 2021 5:33 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: help required for a newbie
- Replies: 1
- Views: 2291
Re: help required for a newbie
Are you sure the "coming" LED is initially off? It could be that is is wired to "active low", i.e. it lights up when the pin value is 0. To test this, just insert a "while True: pass" loop after your setup statements and see whether the LED is already lit up. Another possible reason is that 450 loop...
- Sat May 22, 2021 2:53 pm
- Forum: General Discussion and Questions
- Topic: datetime not working out of the box
- Replies: 18
- Views: 10649
Re: datetime not working out of the box
There are already about half a dozen of those with no response from the maintainers.
See also: viewtopic.php?f=15&t=10454
- Sat May 22, 2021 2:50 pm
- Forum: General Discussion and Questions
- Topic: datetime not working out of the box
- Replies: 18
- Views: 10649
Re: datetime not working out of the box
Who manages micropython-lib and why is there so little activity? In theory the micropython maintainers, in practice nobody. The micropython-lib was mainly created by an earlier MicroPython core developer (with many modules taken & adapted from the CPython stdlib), who has since left the project and...
- Sat May 22, 2021 2:38 pm
- Forum: General Discussion and Questions
- Topic: touchPad on Pin 2 (ESP32)
- Replies: 3
- Views: 3760