I need to use cJSON to parse the uart data. I found the file in SDK15.3 but how can I use the related function?
I need to use cJSON to parse the uart data. I found the file in SDK15.3 but how can I use the related function?
Hi,
just add sources and headers to your project and call functions as usual... you also need to add mem_manager library from SDK. cJSON has a good README with detailed instructions how to use this library.
Hi,
Now I can successfully parse the json data and successfully create the json data. But as long as the data is too long, it will fail to build or parse. I suspect that using the standard library malloc will cause a memory leak. Is my suspicion correct? How to use the memory management library? And What should I do next?
June6
Hi,
Now I can successfully parse the json data and successfully create the json data. But as long as the data is too long, it will fail to build or parse. I suspect that using the standard library malloc will cause a memory leak. Is my suspicion correct? How to use the memory management library? And What should I do next?
June6