Using cJSON with Espressif's esp_iot_rtos_sdk
Posted: Sun Dec 07, 2014 5:36 pm
I'm just starting to get my hands dirty with the new RTOS SDK that Espressif publish on github a few days ago. Has anyone tried using the included cJSON library with this SDK?
I've added "#include "json/cjson.h" to the top of user_main.c file, and added just this one line of code:
However when I compile I get: "undefined reference to cJSON_Parse"
Anyone have any tips on what I am forgetting to do to make this compile successfully? Any hints would be very much appreciated.
Thanks.
-Jonathan
I've added "#include "json/cjson.h" to the top of user_main.c file, and added just this one line of code:
Code: Select all
cJSON * rcvd_json = cJSON_Parse(recv_buf);
However when I compile I get: "undefined reference to cJSON_Parse"
Anyone have any tips on what I am forgetting to do to make this compile successfully? Any hints would be very much appreciated.
Thanks.
-Jonathan