-->
Page 2 of 3

Re: esp_mqtt and Espressif DevKit for Windows + Eclipse IDE

PostPosted: Thu Feb 05, 2015 2:40 pm
by kenn
ranhaber wrote:I have downloaded this great project.
In file mqtt.c there is a call for to function:
espconn_secure_disconnect()
espconn_secure_sent()
but there is no implementation.
If I'm wrong please direct me to it.
Thanks


C:\Espressif\ESP8266_SDK\espconn.h

Re: esp_mqtt and Espressif DevKit for Windows + Eclipse IDE

PostPosted: Thu Feb 05, 2015 4:53 pm
by ranhaber
kenn wrote:
ranhaber wrote:I have downloaded this great project.
In file mqtt.c there is a call for to function:
espconn_secure_disconnect()
espconn_secure_sent()
but there is no implementation.
If I'm wrong please direct me to it.
Thanks


C:\Espressif\ESP8266_SDK\espconn.h

This is a declaration not the implementation!
The linker is still looking for the function (if not the behavior will be undefined).

Re: esp_mqtt and Espressif DevKit for Windows + Eclipse IDE

PostPosted: Thu Feb 05, 2015 11:20 pm
by kenn
ranhaber wrote:
kenn wrote:
ranhaber wrote:I have downloaded this great project.
In file mqtt.c there is a call for to function:
espconn_secure_disconnect()
espconn_secure_sent()
but there is no implementation.
If I'm wrong please direct me to it.
Thanks


C:\Espressif\ESP8266_SDK\espconn.h

This is a declaration not the implementation!
The linker is still looking for the function (if not the behavior will be undefined).


Alot of the SDK code is in binary blobs that we only have the header files for. If those 'baked-in' functions aren't being found and linked to when you build, you have a path problem. I found I had to use one of the make files from another example to get the esp_mqtt project to build and link properly.

Re: esp_mqtt and Espressif DevKit for Windows + Eclipse IDE

PostPosted: Mon Feb 09, 2015 9:15 am
by calgalli
LIBS = c gcc hal phy pp net80211 lwip wpa upgrade main ssl

you may need lib ssl in the link flag.