Post a picture over SSL

General discussion about topics related to OpenMV.
martindr
Posts: 3
Joined: Sun May 20, 2018 12:19 am

Post a picture over SSL

Postby martindr » Sun May 20, 2018 12:30 am

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.
User avatar
kwagyeman
Posts: 3504
Joined: Sun May 24, 2015 2:10 pm

Re: Post a picture over SSL

Postby kwagyeman » Mon May 21, 2018 11:51 pm

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.
Nyamekye,
martindr
Posts: 3
Joined: Sun May 20, 2018 12:19 am

Re: Post a picture over SSL

Postby martindr » Tue May 22, 2018 10:36 pm

Thanks so much for the reply.

I've logged the issue. https://github.com/openmv/openmv/issues/348
User avatar
kwagyeman
Posts: 3504
Joined: Sun May 24, 2015 2:10 pm

Re: Post a picture over SSL

Postby kwagyeman » Wed May 23, 2018 2:00 am

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.
Nyamekye,
martindr
Posts: 3
Joined: Sun May 20, 2018 12:19 am

Re: Post a picture over SSL

Postby martindr » Wed May 23, 2018 10:53 am

Thanks. I'll be happy with any way to make SSL work.
User avatar
kwagyeman
Posts: 3504
Joined: Sun May 24, 2015 2:10 pm

Re: Post a picture over SSL

Postby kwagyeman » Wed May 23, 2018 8:35 pm

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...
Nyamekye,
User avatar
iabdalkader
Posts: 1028
Joined: Sun May 24, 2015 3:53 pm

Re: Post a picture over SSL

Postby iabdalkader » Sat Oct 26, 2019 7:23 am

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

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 5 guests