alkonosst / SSLClientESP32

SSLClient - generic secure client Arduino library using mbedtls
GNU General Public License v3.0
5 stars 3 forks source link

SSLClientESP32 v2.0.3 not compatible with latest arduino-esp32 (v3.0.0) #15

Open bonamyr opened 4 months ago

bonamyr commented 4 months ago

I am using the ESP32-Wrover-b on the Lilygo T-SIM7000G. There is a problem with the header file ssl_lib_client.h of the SSLClientESP32 library. It should #include mbedtls/net.h but doesn't find it. I have reduced the code to the bare minimum to show that the problem is related to the SSLClientESP32 library. The code works fine with the earlier version of arduino-esp32 (v2.0.17) and the latest version of SSLClientESP32 library (v.2.0.3), showing that the most recent SSLClientESP32 library is not compatible with the arduino-esp32 v3.0.0 anymore.

Here is the Arduino sketch:

include

void setup() { // put your setup code here, to run once:

}

void loop() { // put your main code here, to run repeatedly:

}

And the error i get:

In file included from c:\Users\myria\Documents\Arduino\libraries\SSLClientESP32\src/SSLClientESP32.h:25, from C:\Users\myria\AppData\Local\Temp.arduinoIDE-unsaved202454-21456-hvzkm5.0tuzn\sketch_jun4a\sketch_jun4a.ino:1: c:\Users\myria\Documents\Arduino\libraries\SSLClientESP32\src/ssl_lib_client.h:11:10: fatal error: mbedtls/net.h: No such file or directory 11 | #include "mbedtls/net.h" | ^~~~~~~ compilation terminated. exit status 1

Compilation error: exit status 1

mohapower commented 1 month ago

I have same bug. Expected fix?

Humancell commented 4 weeks ago

Hello,

Not sure if this helps the developers, but the esp32FOTA project had the same problem, and recently created a fix!

https://github.com/chrisjoyce911/esp32FOTA

I was trying to look through their commits to see if I could find what the fix was. I hit it yesterday working on a project, but updated the library and it now works.

I'd love to get this project working again also!