Discuss here different C compiler set ups, and compiling executables for the ESP8266

User avatar
By kenn
#9088
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
User avatar
By ranhaber
#9104
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).
User avatar
By kenn
#9111
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.