Search found 15 matches

by mardi2020
Tue Mar 24, 2020 8:22 pm
Forum: General Discussion and Questions
Topic: OSError: -110
Replies: 2
Views: 110

OSError: -110

Hi, could somebody please give me a hint with this error. Thanks for your help! Traceback (most recent call last): File "main.py", line 68, in <module> File "main.py", line 47, in main File "oauth.py", line 178, in request_initial_token File "exturequests.py", line 85, in extract OSError: -110 it ha...
by mardi2020
Tue Mar 24, 2020 12:34 pm
Forum: General Discussion and Questions
Topic: urequest library with cookie support and some redirect enhancements
Replies: 3
Views: 272

Re: urequest library with cookie support and some redirect enhancements

Hi,

i added a first part as PR where i'm sure it works standalone.

mardi2020
by mardi2020
Mon Mar 23, 2020 8:47 pm
Forum: General Discussion and Questions
Topic: urequest library with cookie support and some redirect enhancements
Replies: 3
Views: 272

urequest library with cookie support and some redirect enhancements

Hi, i extended the uurequest.py from pfalcon to support cookies, some improvement for redirects and a method to extract parts of larger response bodies, which don't fit in the heap of a ESP32. https://github.com/mardigras2020/urequests There are a lot of changes at once, which usually violate contri...
by mardi2020
Tue Mar 17, 2020 10:49 am
Forum: General Discussion and Questions
Topic: Memory allocation failed, when loading a html page
Replies: 10
Views: 1134

Re: Memory allocation failed, when loading a html page

So your program is holding references to things... e.g. appending to a list on every request or something like that. yes, i have a lot of loops collecting infos and storing the Info in dictionaries. Is there a better way of allocating the memory? Is there a possibility of defragmenting memory? Than...
by mardi2020
Tue Mar 17, 2020 6:01 am
Forum: General Discussion and Questions
Topic: Memory allocation failed, when loading a html page
Replies: 10
Views: 1134

Re: Memory allocation failed, when loading a html page

Hi, this would be the result before and after gc.collect(). For me it doe not look really better after gc.collect() MemoryError: memory allocation failed, allocating 4864 bytes MicroPython v1.12 on 2019-12-20; ESP32 module with ESP32 Type "help()" for more information. >>> import micropython >>> mic...
by mardi2020
Mon Mar 16, 2020 3:53 pm
Forum: General Discussion and Questions
Topic: Memory allocation failed, when loading a html page
Replies: 10
Views: 1134

Re: Memory allocation failed, when loading a html page

Hi, thanks for your effort and i appreciate your help. I can't reproduce it with the same code, because i changed it a lot the last days, and i can't share a running example - because i can't share with you some of the access secrets. I did a lot of changes since my post (changed library) and with t...
by mardi2020
Mon Mar 16, 2020 2:52 pm
Forum: General Discussion and Questions
Topic: Random generator on ESP32
Replies: 10
Views: 1053

Re: Random generator on ESP32

Roberthh wrote:
Mon Mar 16, 2020 7:03 am
Please note that I extended the source string in my example to 64 bytes length. Otherwise some characters (A-H) are more probably selected then the other ones. Depending on the application that may not matter.
Thanks for the advice, but for this application it is not critical.
by mardi2020
Mon Mar 16, 2020 5:02 am
Forum: General Discussion and Questions
Topic: Memory allocation failed, when loading a html page
Replies: 10
Views: 1134

Re: Memory allocation failed, when loading a html page

I hoped with ~100kb RAM i would be able to load the page :-( but i am not getting past 3kb. Which board are you using? Is the request using SSL? I'm using a ESP32 heltec wifi kit 32 The request uses ssl. My workaround At the moment i' reading the stream byte by byte and extract only matching start/...