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
0133b80e
Commit
0133b80e
authored
Sep 04, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
ffa4dc00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
platform/zigbee/app/builder/Z3GatewayHost/ZB/kk_device_manager.c
...m/zigbee/app/builder/Z3GatewayHost/ZB/kk_device_manager.c
+6
-14
No files found.
platform/zigbee/app/builder/Z3GatewayHost/ZB/kk_device_manager.c
View file @
0133b80e
...
@@ -268,7 +268,7 @@ static const char *kk_match_tsl_productCode(const char* modelId)
...
@@ -268,7 +268,7 @@ static const char *kk_match_tsl_productCode(const char* modelId)
UTIL_LOG_INFO
(
"match model id:%s
\n
"
,
kk_product_code
[
i
].
modelId
);
UTIL_LOG_INFO
(
"match model id:%s
\n
"
,
kk_product_code
[
i
].
modelId
);
UTIL_LOG_INFO
(
"tsl product code:%s
\n
"
,
kk_product_code
[
i
].
code
);
UTIL_LOG_INFO
(
"tsl product code:%s
\n
"
,
kk_product_code
[
i
].
code
);
#ifdef KK_PRODUCT_CODE_STRING_ENABLE
#ifdef KK_PRODUCT_CODE_STRING_ENABLE
UTIL_LOG_INFO
(
"match product:%s"
,
kk_product_code
[
i
].
name
);
UTIL_LOG_INFO
(
"match product:%s
\n
"
,
kk_product_code
[
i
].
name
);
#endif
#endif
return
kk_product_code
[
i
].
code
;
return
kk_product_code
[
i
].
code
;
...
@@ -375,6 +375,11 @@ void emberAfPluginDeviceTableNewDeviceCallback(EmberEUI64 nodeEui64)
...
@@ -375,6 +375,11 @@ void emberAfPluginDeviceTableNewDeviceCallback(EmberEUI64 nodeEui64)
{
{
kk_device_joined
(
emberAfDeviceTableGetNodeIdFromEui64
(
nodeEui64
));
kk_device_joined
(
emberAfDeviceTableGetNodeIdFromEui64
(
nodeEui64
));
}
}
void
emberAfPluginDeviceTableRejoinDeviceCallback
(
EmberEUI64
nodeEui64
)
{
kk_device_joined
(
emberAfDeviceTableGetNodeIdFromEui64
(
nodeEui64
));
}
void
emberAfPluginDeviceTableDeviceLeftCallback
(
EmberEUI64
nodeEui64
)
void
emberAfPluginDeviceTableDeviceLeftCallback
(
EmberEUI64
nodeEui64
)
{
{
uint16_t
deviceTableIndex
=
emberAfDeviceTableGetFirstIndexFromEui64
(
nodeEui64
);
uint16_t
deviceTableIndex
=
emberAfDeviceTableGetFirstIndexFromEui64
(
nodeEui64
);
...
@@ -469,20 +474,7 @@ void kk_add_device_to_table(EmberEUI64 mac,EmberNodeId nodeId,uint16_t deviceId)
...
@@ -469,20 +474,7 @@ void kk_add_device_to_table(EmberEUI64 mac,EmberNodeId nodeId,uint16_t deviceId)
void
emberAfPluginDeviceTableRejoinDeviceCallback
(
EmberEUI64
nodeEui64
)
{
kk_device_table_s
*
ptr
=
kk_device_find_by_mac
(
nodeEui64
);
if
(
ptr
==
NULL
){
UTIL_LOG_INFO
(
"not in device table!!!"
);
emberAfPrintBigEndianEui64
(
nodeEui64
);
emberAfDebugPrintln
(
""
);
return
;
}
if
(
ptr
->
productCode
!=
NULL
){
kk_rpc_reportDevices
(
nodeEui64
,
ptr
->
productCode
);
}
}
...
...
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