Search found 24 matches

by davef
Fri Aug 07, 2020 7:41 am
Forum: General Discussion and Questions
Topic: help('modules') and sys.modules
Replies: 3
Views: 55

Re: help('modules') and sys.modules

Should I be concerned about 2 * uhashlib in help('modules')?
by davef
Fri Aug 07, 2020 5:00 am
Forum: General Discussion and Questions
Topic: help('modules') and sys.modules
Replies: 3
Views: 55

help('modules') and sys.modules

I have been using a ESP32 build and when I did a help ('modules') I got a long list but I noticed that there are two uhashlib modules! I can't find a way of seeing if these are a different size. I have read that you can do a: del sys.modules['test'] but when I do a sys.modules I don't see a uhashlib...
by davef
Fri Aug 07, 2020 2:30 am
Forum: Programs, Libraries and Tools
Topic: uMail - A lightweight SMTP client for MicroPython
Replies: 24
Views: 6778

Re: uMail - A lightweight SMTP client for MicroPython

tom1,

Find anything? I finally got uMail to work on the ESP32 and now I also want to send attachments. I use sendmail in a Python script on a RaspberryPi. Had a pretty good look around and all the tutorials I see use sendmail.

Dave
by davef
Tue Aug 04, 2020 6:53 am
Forum: MicroPython pyboard
Topic: How do I build-in ussl support for this board?
Replies: 3
Views: 784

Re: How do I build-in ussl support for this board?

Could someone point to an explanation of what some of the build files are suppose to contain? Specifically, mpconfigport.h mpconfigport.mk, mpconfigboard,h and mpconfigboard.mk For this particular ussl issue putting MICROPY_PY_USSL = 1 into mkconfigboard.mk works and putting #define MICRO_PY_USSL (1...
by davef
Tue Aug 04, 2020 6:45 am
Forum: Other Boards
Topic: WeActSTM32F411CEU6 uMail and ussl
Replies: 5
Views: 662

Re: WeActSTM32F411CEU6 uMail and ussl

The solution ... after a suggestion by Peter Hinch to look at the mpconfigboard.mk for the PYBD_SF2, I added the following lines to the mpconfigboard.mk for this port:

Code: Select all

MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1
by davef
Tue Aug 04, 2020 6:39 am
Forum: MicroPython pyboard
Topic: How do I build-in ussl support for this board?
Replies: 3
Views: 784

Re: How do I build-in ussl support for this board?

Hi Peter,

By placing the following lines into mpconfigboard.mk:

Code: Select all

MICROPY_PY_USSL = 1
MICROPY_SSL_MBEDTLS = 1
I now have ussl.

Thank you very much!

Cheers,
Dave
by davef
Tue Aug 04, 2020 5:41 am
Forum: Other Boards
Topic: WeActSTM32F411CEU6 directory structure
Replies: 4
Views: 497

Re: WeActSTM32F411CEU6 directory structure

Thanks, that issue is sorted.
by davef
Tue Aug 04, 2020 4:48 am
Forum: MicroPython pyboard
Topic: How do I build-in ussl support for this board?
Replies: 3
Views: 784

How do I build-in ussl support for this board?

I can get ussl in the unix build but exactly which lines have to go in which config file for the stm32 port eludes me.

Thanks,
Dave
by davef
Tue Aug 04, 2020 1:08 am
Forum: Other Boards
Topic: WeActSTM32F411CEU6 directory structure
Replies: 4
Views: 497

Re: WeActSTM32F411CEU6 directory structure

I believe I have the WeActSTM32F411CEU6 in the right place.

I have since setup a virtual environment and notice that in ~/MicroPython there is only one directory called /ports/stm32 and it is in /micropython.

So, it looks like I messed up the first installation.

Thanks,
Dave
by davef
Mon Aug 03, 2020 7:39 pm
Forum: General Discussion and Questions
Topic: Build problem, include library?
Replies: 2
Views: 208

Re: Build problem, include library?

I am building from the command line. I can build ussl in the unix port, but not for the stm32 default PYBV10 port. I tried changing #include "mbedtls/version.h" to #include <version.h> in moduhashlib.c and got the same result. I assume that one modifies the /stm32/mpconfigport.h to add in the follow...