Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove doc stating that TLS does not work on ESP32. #58

Merged
merged 1 commit into from
Aug 2, 2021
Merged

Remove doc stating that TLS does not work on ESP32. #58

merged 1 commit into from
Aug 2, 2021

Conversation

Molaire
Copy link

@Molaire Molaire commented Aug 2, 2021

Using Micropython 1.16-135, I have found out that ESP32 can in fact run an encrypted connection and communicate with it on non-blocking sockets.

Certificate and key were made using RSA2048b with AWS IoT service.
They were pushed in the config like so:
config['ssl_params'] = {'cert: 'content_of_cert', 'key': 'content_of_key'}

MicroPython v1.16-135-gaecb697c7-dirty on 2021-07-28; ESP32 module with ESP32
Type "help()" for more information.
>>> import tls32
Checking WiFi integrity.
Got reliable connection
Connecting to broker.
Connected to broker.
Wifi is  up
publish 0
Topic = result Count = 0 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 1
Topic = result Count = 1 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 2
Topic = result Count = 2 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 3
Topic = result Count = 3 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 4
Topic = result Count = 4 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 5
Topic = result Count = 5 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 6
Topic = result Count = 6 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 7
Topic = result Count = 7 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 8
Topic = result Count = 8 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152
publish 9
Topic = result Count = 9 Retransmissions = 0 Retained = False
RAM free 82016 alloc 29152

@Molaire Molaire marked this pull request as ready for review August 2, 2021 13:09
@Molaire Molaire changed the title Rempve doc stating that TLS does not work on ESP32. Remove doc stating that TLS does not work on ESP32. Aug 2, 2021
@peterhinch peterhinch merged commit d74919d into peterhinch:master Aug 2, 2021
@peterhinch
Copy link
Owner

Thank you very much for testing this. I'm glad to see it's working at last.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants