ESP8266 Developer Zone The Official ESP8266 Forum 2018-12-11T20:43:13+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=24248 2018-12-11T20:43:13+08:00 2018-12-11T20:43:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24248&p=35972#p35972 <![CDATA[Re: when securely connect(SSL), reconnection callback error(-114)]]> https://www.espressif.com/en/support/do ... s?keys=SSL

Statistics: Posted by Her Mary — Tue Dec 11, 2018 8:43 pm


]]>
2018-11-08T18:57:15+08:00 2018-11-08T18:57:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=24248&p=35328#p35328 <![CDATA[when securely connect(SSL), reconnection callback error(-114)]]>
I am using the official version of espressif' 「ESP8266 NONOS SDK 2.2.0」.
(https://github.com/espressif/ESP8266_NONOS_SDK/releases)

However, it is a difficult situation due to errors in Secure (SSL) communication.
I would like a lot of help and advice.

【Background】
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.

【Question】
■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!

Statistics: Posted by c.w-park — Thu Nov 08, 2018 6:57 pm


]]>