Any lib for invoking REST API?

imovit
Posts: 8
Joined: Sun Jul 29, 2018 1:52 pm

Any lib for invoking REST API?

Postby imovit » Sun Jul 29, 2018 10:22 pm

Hi
IS there any lib or sample code that alows to call Post verb passing json?
Thanks a lot

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: Any lib for invoking REST API?

Postby kolban » Mon Jul 30, 2018 4:10 am

The relatively new HTTP Client library is likely going to be of use to you ... see:

http://esp-idf.readthedocs.io/en/latest ... lient.html

Also search the forum for previous discussions on using libcurl.

The ESP-IDF also comes bundled with a version of cJSON ... see:

https://github.com/espressif/esp-idf/tr ... nents/json
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

imovit
Posts: 8
Joined: Sun Jul 29, 2018 1:52 pm

Re: Any lib for invoking REST API?

Postby imovit » Mon Jul 30, 2018 1:11 pm

Thanks!
esp_http_client seems to be the right thing

Now I am having a small big problem:

When using platformio, how to include the .h file?
I tryied

#include "esp_http_client.h"

and

#include "esp_http_client/include/esp_http_client.h"

but without success

Thank you

Who is online

Users browsing this forum: MicroController and 75 guests