Full example of using libcurl with ESP32

User avatar
loboris
Posts: 514
Joined: Wed Dec 21, 2016 7:40 pm

Re: Full example of using libcurl with ESP3232

Postby loboris » Mon Jun 19, 2017 11:57 am

UPDATE

Included libGSM to test libCurl with GSM modems.
For more info on using GSM modules see viewtopic.php?f=17&t=1496

mcamarotto
Posts: 1
Joined: Mon Mar 01, 2021 10:59 am

Re: Full example of using libcurl with ESP32

Postby mcamarotto » Mon Mar 01, 2021 11:21 am

I try compile the code at ESP_IDF v4.2 framework, but the command 'make' didn't work because this framework use the scripts idf.py to compile. is there update for this example?

Best regards

wts1985
Posts: 3
Joined: Wed Apr 07, 2021 9:55 am

Re: Full example of using libcurl with ESP32

Postby wts1985 » Wed Jun 23, 2021 8:21 am

mcamarotto wrote:
Mon Mar 01, 2021 11:21 am
I try compile the code at ESP_IDF v4.2 framework, but the command 'make' didn't work because this framework use the scripts idf.py to compile. is there update for this example?

Best regards
Hi,
It has been a while so I don't know whether you have figured it out, I just post here for future reference.
You may just create a CMakeLists.txt under the top level folder along with lib and include folders, with following content:

Code: Select all

set (srcs "lib/amigaos.c"
             ... other.c files in lib folder
             "lib/x509asn1.c")
idf_component_register(SRCS "${srcs}"
                                     INCLUDE_DIRS "include" "lib"
                                     REQUIRES mbedtls libssh2 zlib)

add_definitions(-DHAVE_CONFIG_H -DBUILDING_LIBCURL)
This is how I integrated ESP32 libcurl to ESP-IDF v4.2.1. There are several compilation warning but the compilation is completed.
Hope this helps.

Who is online

Users browsing this forum: No registered users and 26 guests