Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
k-sdk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈伟灿
k-sdk
Commits
799fe95b
Commit
799fe95b
authored
Aug 10, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 接收回复打印json信息
parent
e12dc1ef
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
platform/zigbee/app/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
...p/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
+1
-0
No files found.
platform/zigbee/app/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
View file @
799fe95b
...
@@ -93,6 +93,7 @@ static int send_result_resp(cJSON * result,
...
@@ -93,6 +93,7 @@ static int send_result_resp(cJSON * result,
rpc_cJSON_AddItemToObject
(
result_root
,
"id"
,
id
);
rpc_cJSON_AddItemToObject
(
result_root
,
"id"
,
id
);
char
*
str_result
=
rpc_cJSON_Print
(
result_root
);
char
*
str_result
=
rpc_cJSON_Print
(
result_root
);
printf
(
"send json:
\n
%s
\n
"
,
str_result
);
return_value
=
kk_ipc_send
(
IPC_PLAT2MID
,
str_result
,
strlen
(
result_root
)
+
1
);
return_value
=
kk_ipc_send
(
IPC_PLAT2MID
,
str_result
,
strlen
(
result_root
)
+
1
);
free
(
str_result
);
free
(
str_result
);
rpc_cJSON_Delete
(
result_root
);
rpc_cJSON_Delete
(
result_root
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment