Commit a10a3767 authored by 尹佳钦's avatar 尹佳钦

添加 IPC发送json打印信息

parent 3c4fdd06
...@@ -253,6 +253,9 @@ int jrpc_send_msg(cJSON * msgJson) { ...@@ -253,6 +253,9 @@ int jrpc_send_msg(cJSON * msgJson) {
int return_value = 0; int return_value = 0;
char * str_result = rpc_cJSON_Print(msgJson); char * str_result = rpc_cJSON_Print(msgJson);
char* p = rpc_cJSON_Print(item);
emberAfAppPrintln("send json:\n%s\n",p);
free(p);
return_value = kk_ipc_send(IPC_PLAT2MID, str_result, strlen(str_result)+1); return_value = kk_ipc_send(IPC_PLAT2MID, str_result, strlen(str_result)+1);
free(str_result); free(str_result);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment