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
7efcc582
Commit
7efcc582
authored
Sep 01, 2021
by
chen.weican
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【修改内容】修改设备控制不了的问题
【提交人】陈伟灿
parent
a94161ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
application/kcloud/kcloud_data_handle.c
application/kcloud/kcloud_data_handle.c
+1
-0
application/klansdk/kk_lan_main.c
application/klansdk/kk_lan_main.c
+4
-4
application/klansdk/kk_oldccu_msg.c
application/klansdk/kk_oldccu_msg.c
+1
-2
No files found.
application/kcloud/kcloud_data_handle.c
View file @
7efcc582
...
@@ -197,6 +197,7 @@ char * g_filerToCloudTable[] =
...
@@ -197,6 +197,7 @@ char * g_filerToCloudTable[] =
{
{
(
char
*
){
"/thing/service/historyAlarm_reply"
},
(
char
*
){
"/thing/service/historyAlarm_reply"
},
(
char
*
){
"/thing/service/delAlarm_reply"
},
(
char
*
){
"/thing/service/delAlarm_reply"
},
(
char
*
){
"/thing/service/syncinfo_reply"
},
};
};
/************************************************************
/************************************************************
*功能描述:过滤不需要下发给网关的消息
*功能描述:过滤不需要下发给网关的消息
...
...
application/klansdk/kk_lan_main.c
View file @
7efcc582
...
@@ -110,10 +110,10 @@ int main(int argc, char* argv[])
...
@@ -110,10 +110,10 @@ int main(int argc, char* argv[])
open
(
"kk_lan"
,
LOG_PID
,
LOG_USER
);
open
(
"kk_lan"
,
LOG_PID
,
LOG_USER
);
if
(
prg_run_singleton
(
argv
[
0
])
<
0
){
//
if(prg_run_singleton(argv[0])<0){
debug_log
(
LOG_CRITICAL_LEVEL
,
"[%s]run singleton fail!
\n
"
,
argv
[
0
]);
//
debug_log(LOG_CRITICAL_LEVEL,"[%s]run singleton fail!\n",argv[0]);
return
-
1
;
//
return -1;
}
//
}
kk_lan_ccuid_init
();
kk_lan_ccuid_init
();
...
...
application/klansdk/kk_oldccu_msg.c
View file @
7efcc582
...
@@ -126,7 +126,6 @@ static int _kk_lan_update_device_status(int nodeId,cJSON *opcode,cJSON *arg)
...
@@ -126,7 +126,6 @@ static int _kk_lan_update_device_status(int nodeId,cJSON *opcode,cJSON *arg)
memset
(
nodeBuff
,
0
,
sizeof
(
nodeBuff
));
memset
(
nodeBuff
,
0
,
sizeof
(
nodeBuff
));
snprintf
(
nodeBuff
,
32
,
"%d"
,
nodeId
);
snprintf
(
nodeBuff
,
32
,
"%d"
,
nodeId
);
memset
(
nodeBuff
,
0
,
sizeof
(
nodeBuff
));
memset
(
valBuff
,
0
,
sizeof
(
valBuff
));
memset
(
valBuff
,
0
,
sizeof
(
valBuff
));
if
(
arg
->
type
==
cJSON_String
){
if
(
arg
->
type
==
cJSON_String
){
...
@@ -147,7 +146,7 @@ static int _kk_lan_update_device_status(int nodeId,cJSON *opcode,cJSON *arg)
...
@@ -147,7 +146,7 @@ static int _kk_lan_update_device_status(int nodeId,cJSON *opcode,cJSON *arg)
snprintf
(
valBuff
,
sizeof
(
valBuff
),
"%s"
,
"false"
);
snprintf
(
valBuff
,
sizeof
(
valBuff
),
"%s"
,
"false"
);
}
}
msg
=
old_ccu_msg_build
(
nodeBuff
,
opcode
->
valuestring
,
"success"
,
arg
->
valuestring
);
msg
=
old_ccu_msg_build
(
nodeBuff
,
opcode
->
valuestring
,
"success"
,
valBuff
);
send_msg_to_module
(
msg
);
send_msg_to_module
(
msg
);
cJSON_Delete
(
msg
);
cJSON_Delete
(
msg
);
...
...
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