Stm32 使用 CJSON 输出 json 字符串并反序列化 数据

 

 cjson  需要占用3k的 动态内存   https://github.com/woody5418/STM32F103C8T6_cJson  

其次设置keil  为C99

https://blog.csdn.net/qq_40860986/article/details/89955634

struct2json 使用 相对方便一点 

https://github.com/armink/struct2json

实例是 两个的综合体

 

 

最终的 代码变大了40kb 所以这些个算法还剩很占flash的, 使用之前需要全局考虑一下代价 

 

posted @ 2020-10-16 17:14  一颗大白鲸  阅读(874)  评论(0编辑  收藏  举报