CHERTS / esp8266-devkit

Unofficial Development Kit for Espressif ESP8266
http://www.programs74.ru
GNU General Public License v3.0
261 stars 102 forks source link

SSL Client #30

Closed jmesa85 closed 8 years ago

jmesa85 commented 8 years ago

Hi,

I was able to install with success this DevKit and run several of the demos on a NodeMCU 0.9.

Currently, I'm trying to establish a secure SSL connection, based on the code published here: [http://bbs.espressif.com/viewtopic.php?f=31&t=389&p=1466&hilit=ssl#p1466]

After adding the corresponding dependencies, like #include "espconn.h", and others, I'm receiving the errors:

undefined reference to espconn_secure_connect' undefined reference toespconn_secure_sent'

Is it anything wrong with that code? Does the secure-connection part of the SDK work OK? Do you have plans for an example of a secure connection?

Thanks for the help.

icodk commented 8 years ago

Do you have this line in your Makefile-user.mk ? EXTRA_LIBS= ssl crypto

jmesa85 commented 8 years ago

I don't have a .mk file in the project. The current Makefile was copied from the HelloWorld. Could you give me the instructions for working with it? Thanks.

jmesa85 commented 8 years ago

Well, I added ssl to the flag LIBS in the Makefile, and the error is gone. Thanks for the hint.