Page 1 of 1

Any lib for invoking REST API?

Posted: Sun Jul 29, 2018 10:22 pm
by imovit
Hi
IS there any lib or sample code that alows to call Post verb passing json?
Thanks a lot

Re: Any lib for invoking REST API?

Posted: Mon Jul 30, 2018 4:10 am
by kolban
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

Re: Any lib for invoking REST API?

Posted: Mon Jul 30, 2018 1:11 pm
by imovit
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