This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] CCS:针对 C 的 JSON-RPC 实现

Guru**** 2999690 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/925954/ccs-implementation-of-json-rpc-for-c

工具/软件:Code Composer Studio

大家好、

我需要通过 json_RPC 格式配置温度传感器并执行读/写命令。 谁知道如何在 C 环境中使用 JSON 格式?

我必须将此命令发送到 sensore:

>>{"jsonrpc":"2.0"、"方法":"prepareLog"、"params":[0]、"id":1}
>>{"jsonrpc":"2.0"、"方法":"readLog"、"params":[500]、"id":2}
>>{"jsonrpc"、"sonLog":"2.0"、"params":"params"

如何在代码中编写此代码? 是否有任何库?