This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

cJSON_print() issue

I'm using nRF9160DK and in that cJSON formation give me some error because of that my device will restart again and again

as in code if I'm input cJSON_AddNumberToObject(Data,"Humidity",22); that time its happening but I thing the problem with cJSON_print()

cJSON_AddItemToObject(Device_data1, "data", Data = cJSON_CreateObject());
cJSON_AddStringToObject(Data,"Temperature","67");
cJSON_AddStringToObject(Data,"Humidity","44");
//cJSON_AddNumberToObject(Data,"Humidity",22);

Attribute_json_Data = cJSON_Print(Attribute_json);

????

Parents Reply Children
Related