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
5f8bedfa
Commit
5f8bedfa
authored
Aug 10, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加 接收回复打印json信息
parent
799fe95b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
platform/zigbee/app/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
...p/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
+3
-3
No files found.
platform/zigbee/app/builder/Z3GatewayHost/rpc_api/src/rpc_interface_parse.c
View file @
5f8bedfa
...
@@ -89,12 +89,12 @@ static int send_result_resp(cJSON * result,
...
@@ -89,12 +89,12 @@ static int send_result_resp(cJSON * result,
int
return_value
=
0
;
int
return_value
=
0
;
cJSON
*
result_root
=
rpc_cJSON_CreateObject
();
cJSON
*
result_root
=
rpc_cJSON_CreateObject
();
if
(
result
)
if
(
result
)
rpc_cJSON_AddItemToObject
(
result_root
,
"
result
"
,
result
);
rpc_cJSON_AddItemToObject
(
result_root
,
"
code
"
,
result
);
rpc_cJSON_AddItemToObject
(
result_root
,
"
i
d"
,
id
);
rpc_cJSON_AddItemToObject
(
result_root
,
"
msgI
d"
,
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
);
printf
(
"send json:
\n
%s
\n
"
,
str_result
);
return_value
=
kk_ipc_send
(
IPC_PLAT2MID
,
str_result
,
strlen
(
result_roo
t
)
+
1
);
return_value
=
kk_ipc_send
(
IPC_PLAT2MID
,
str_result
,
strlen
(
str_resul
t
)
+
1
);
free
(
str_result
);
free
(
str_result
);
rpc_cJSON_Delete
(
result_root
);
rpc_cJSON_Delete
(
result_root
);
return
return_value
;
return
return_value
;
...
...
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