I am using the official version of espressif' 「ESP8266 NONOS SDK 2.2.0」.
However, it is a difficult situation due to errors in Secure (SSL) communication.
I would like a lot of help and advice.
Referring to the source code of the existing IoT_Demo,
You can see that it uses "libssl.a" in the SSL communication.
However, this library does not seem to support the SHA-2 algorithm.
So I try to use mbedlib' "libmbedlib.a" link.
■How to use "libmbedlib.a"
1)I already have "libmbedlib.a" in the SDK's lib (ESP8266_NONOS_SDK-2.2.0 \ lib) folder.
Can I just change "-lssl" → "-lmbedtls" in the user application's makefile?
2)Especially, there was a difference between the header file(espconn.h) of "ESP8266_NONOS_SDK-2.2.0\third_party\include\lwip\app" and the header file(espconn.h) of "ESP8266_NONOS_SDK - 2.2.0 \ include", is there a problem?
■About errors and how to fix them
3) In the makefile, change "-lssl" → "-lmbedtls",
When executing 「espconn_secure_connect」, a "-114" error occurs from the CallBack function registered in espconn_regist_reconcb' function.
What does this error(-114) mean?
And how can you solve it?
pls, help me!
Who is online
Users browsing this forum: No registered users and 7 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!