HTTPS on ESP32 #7055
Replies: 1 comment
-
Posted at 2017-11-21 by @gfwilliams Just a note - ESP8266 will likely ignore the Posted at 2017-11-22 by Wilberforce Hi, Same issue with the linux version - so does not appear to be ESP32 related:
Posted at 2017-11-22 by Wilberforce Works with Looks like you are trying to get you public IP - either use http or call something else? Posted at 2017-11-22 by cmo Unfortunately I need HTTPS working. The ESP8266 is indeed getting secure pages, I've tested it with a simple nodejs server. Why can't the ESP32? I don't need to get the public IP that was just for example purposes. Can someone describe what needs to be enabled in the makefile or other switches so I can make my own build? Again, thanks for your help. Posted at 2017-11-23 by Wilberforce Sorry, the esp8266 does not have the required libs compiled in. It does not support https requests. The esp32 works fetching the google site as a secure page. What secure site is it you want to use? If you use your code above and change the request to one of the site in comment #4 you see that it does work with the esp32 Posted at 2017-12-07 by cmo Of course you guys are right on the ESP8266 HTTPS not working - I was wrongly recalling SSL working when I was writing in C using Espressif libraries. Anyway to close this out I have made HTTPS work for what I needed by using the "tls" module on the ESP32. I'm using short messages with a private server. However I think there's still something fishy. If I use 1V94 and run this code on an ESP32 I get this partial response from google with an error.
Posted at 2017-12-14 by Wilberforce Works for me with latest build from github:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2017-11-21 by cmo
So I've been very happy with the level of support and efficiency of Espruino on both a ESP32 and ESP8266. However I get an error when I try to download a HTTPS site.
This works on an ESP8266 but not an ESP32:
The error I get on my ESP32 is:
Per mbed, I believe this relates to:
I see a video showing it working and this link: espruino/Espruino#960
Maybe it broke in the latest release? I have 1v94.
Any help is very much appreciated. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions