Page 1 of 1

Post a picture over SSL

Posted: Sun May 20, 2018 12:30 am
by martindr
I'm new to both OpenMV and MicroPython and am trying to post detected faces to a cloud endpoint over SSL. When I add an import ussl I encounter an error "no module named 'ussl'".

Does MicroPython on the Open MV 7 support the ussl library? And if not, I don't understand why it is documented at http://docs.openmv.io/library/ussl.html.

Re: Post a picture over SSL

Posted: Mon May 21, 2018 11:51 pm
by kwagyeman
Mmm, we pull a lot of documentation from MicroPython in. Um, this module may not be enabled in the firmware. But, we have space for the feature on the M7.

Can you post a bug report on the github? Here: https://github.com/openmv/openmv/issues

If it's just an enable issue we should be able to fix this ASAP.

Re: Post a picture over SSL

Posted: Tue May 22, 2018 10:36 pm
by martindr
Thanks so much for the reply.

I've logged the issue. https://github.com/openmv/openmv/issues/348

Re: Post a picture over SSL

Posted: Wed May 23, 2018 2:00 am
by kwagyeman
Ibrahim is looking into this. Given we use the WINC1500 I believe the USSL library cannot be used directly however. The module requires another way of operating. But, it does have SSL support.

Re: Post a picture over SSL

Posted: Wed May 23, 2018 10:53 am
by martindr
Thanks. I'll be happy with any way to make SSL work.

Re: Post a picture over SSL

Posted: Wed May 23, 2018 8:35 pm
by kwagyeman
Okay, it's on the todo list. That said, we just did a firmware update 2 weeks ago and I'm still recovering from Maker Faire. I should be able to get up and fixing bus again this weekend ish...

Re: Post a picture over SSL

Posted: Sat Oct 26, 2019 7:23 am
by iabdalkader
This is an old thread but if anyone else is interested, the ussl module is now available in the latest beta release with mbedtls, additionally the WINC1500 host driver and firmware have been updated to the latest (v19.3.0/v19.6.1). Note the new release requires a WINC1500 firmware update (included with the release).

As for posting stuff over SSL you can use urequests or urllib (they may need small modifications to work) for example:
https://github.com/micropython/micropyt ... request.py