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
794c20f6
Commit
794c20f6
authored
Nov 05, 2020
by
陈伟灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'cwc' into 'master'
【修改内容】修改手机主动删除设备主机无法收到topo change的bug See merge request chenweican/k-sdk!63
parents
5ff08f02
841e29aa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
application/kcloud/kcloud_data_handle.c
application/kcloud/kcloud_data_handle.c
+3
-1
No files found.
application/kcloud/kcloud_data_handle.c
View file @
794c20f6
...
@@ -218,7 +218,8 @@ void KK_Data_FromDev(void* str,int len)
...
@@ -218,7 +218,8 @@ void KK_Data_FromDev(void* str,int len)
static
int
_check_invalid_topic
(
const
char
*
topic
)
static
int
_check_invalid_topic
(
const
char
*
topic
)
{
{
if
(
strstr
(
topic
,
KK_FILTER_TOPO_TOPIC
)
!=
NULL
&&
\
if
(
strstr
(
topic
,
KK_FILTER_TOPO_TOPIC
)
!=
NULL
&&
\
strstr
(
topic
,
KK_FILTER_TOPO_REPLY
)
==
NULL
){
strstr
(
topic
,
KK_FILTER_TOPO_REPLY
)
==
NULL
&&
\
strstr
(
topic
,
KK_TOPO_CHANGE_MSG_STR
)
==
NULL
){
return
1
;
return
1
;
}
}
else
if
(
strstr
(
topic
,
KK_FILTER_REGISTER_TOPIC
)
!=
NULL
&&
\
else
if
(
strstr
(
topic
,
KK_FILTER_REGISTER_TOPIC
)
!=
NULL
&&
\
...
@@ -419,6 +420,7 @@ void KK_Sendto_DevData(const char *topic,const char *data)
...
@@ -419,6 +420,7 @@ void KK_Sendto_DevData(const char *topic,const char *data)
{
{
if
(
_check_invalid_topic
(
topic
))
if
(
_check_invalid_topic
(
topic
))
{
{
INFO_PRINT
(
"[%s][%d]ingore the topic:%s
\n
"
,
__FUNCTION__
,
__LINE__
,
topic
);
return
;
//ingore the message
return
;
//ingore the message
}
}
INFO_PRINT
(
"[%s][%d]receive from cloud,topic:%s
\n
"
,
__FUNCTION__
,
__LINE__
,
topic
);
INFO_PRINT
(
"[%s][%d]receive from cloud,topic:%s
\n
"
,
__FUNCTION__
,
__LINE__
,
topic
);
...
...
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