Search found 463 matches

by SpotlightKid
Mon Jan 18, 2021 11:41 pm
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 17904

Re: [SOLVED] urequests + redirects

Yeah, and neither would fit on an MicroPython board without serious reworking ("urequest.py" has not much in common with "requests" except the name and the module-level function names). At which point it is easier to (re-)implement the features you need from them. Feel free to prove me wrong by port...
by SpotlightKid
Mon Jan 18, 2021 11:22 pm
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 17904

Re: [SOLVED] urequests + redirects

mattyt wrote:
Wed Dec 02, 2020 1:17 am
Don't suppose anyone is keen to port - or write a subset - of httpx to MicroPython?
This would be unlikely to succeed. httpx has a current LOC of 7553 (LLOC: 3244) and depends on half a dozen other Python modules.
by SpotlightKid
Mon Jan 18, 2021 10:59 pm
Forum: General Discussion and Questions
Topic: [SOLVED] urequests + redirects
Replies: 20
Views: 17904

Re: [SOLVED] urequests + redirects

It’s moved here: https://github.com/pfalcon/micropython-lib/tree/master/urequests Can you show me how to use this library in MicroPython? I get error showing me the ussl module doesn't have the SSLContext method.Thanks. Here, I fixed it for ya: https://gist.github.com/SpotlightKid/8637c685626b334e5...
by SpotlightKid
Thu Sep 24, 2020 7:53 pm
Forum: General Discussion and Questions
Topic: Show me: a library for easy WiFi setup for non-dev end-users
Replies: 4
Views: 4410

Re: Show me: a library for easy WiFi setup for non-dev end-users

I tested this just now on my ESP32 and it worked nicely. So thanks for your work and sharing it! My phone didn't pop up the "Sign-in to .." message, but my tablet did. It may be that the Android version on my phone is too old. I could still access the login page by opening it manually in the browser...
by SpotlightKid
Tue Aug 18, 2020 8:32 pm
Forum: WiPy and CC3200 boards
Topic: Sending email
Replies: 36
Views: 183485

Re: Sending email

The RFC prescribes that all lines in a message must end with CR + LF (i.e. '\r\n') not only a single line-feed. Most mail clients and server tolerate line-feed-only line endings, though, but...
by SpotlightKid
Tue Aug 18, 2020 5:40 pm
Forum: Programs, Libraries and Tools
Topic: uMail - A lightweight SMTP client for MicroPython
Replies: 33
Views: 31429

Re: uMail - A lightweight SMTP client for MicroPython

@davef: uMail does not format the email for you. It is equivalent to the "smtplib" module in the CPython standard library. If you want a subject or any other header, you need to format an RFC5322-compliant message string. On CPython your would do this with the "email" module, but that is much too bi...
by SpotlightKid
Thu Jul 16, 2020 1:46 pm
Forum: Drivers for External Components
Topic: VS1053b audio drivers: play music, speech or sound FX
Replies: 15
Views: 11235

Re: VS1053b audio drivers: play music, speech or sound FX

You would need to mix the different samples when they are played into a continuous (stereo) audio stream and send that to the audio card. So you'd need <time polyphony> waveform oscillators and at least <times polyphony> amplitude envelope generators (plus optionally as many filters, LFOs etc.). Bas...
by SpotlightKid
Sat Jun 27, 2020 6:06 am
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 79
Views: 169359

Re: WeAct STM32F411CEU6 black pill

Yes, I read that. I was looking though to make the most of the existing flash or extending it without having to order extra parts.
by SpotlightKid
Thu Jun 25, 2020 9:44 pm
Forum: Other Boards
Topic: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards
Replies: 167
Views: 307612

Re: MCUDev Black STM32F407VET6 + STM32F407ZET6 dev boards

MCUDev DevEBox STM32F407VGT6 [...] @mcauser 's board definition works perfectly. I spoke too son. I get strange behaviour with this board (firmware compiled from git as of today): * On every power up or after every reset (even soft reset) I see the following LED blinking pattern 1-2-3. This repeats...
by SpotlightKid
Thu Jun 25, 2020 9:04 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 79
Views: 169359

Re: WeAct STM32F411CEU6 black pill

I just got three of these today from China and successfully flashed MP onto the first one. Having only ~45 kB left on the flash FS is a bit of a bummer, though. * If I add frozen modules to my firmware build, will they further decrease the flash FS size? * If I disable some builtin modules I don't u...