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
7a7f6abb
Commit
7a7f6abb
authored
Aug 31, 2020
by
尹佳钦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加打印
parent
fecfe567
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
+6
-0
No files found.
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
View file @
7a7f6abb
...
...
@@ -570,6 +570,7 @@ void emberAfPluginDeviceTableNewDeviceCallback(EmberEUI64 nodeEui64)
int
kk_report_global_onoff_attribute
(
EmberEUI64
eui64
,
uint8_t
EP
,
EmberAfClusterId
clusterId
,
EmberAfAttributeId
attributeId
,
uint8_t
dataType
,
uint8_t
len
,
uint8_t
*
data
)
{
emberAfAppPrintln
(
"kk_report_global_onoff_attribute"
);
uint8_t
OnOff
;
if
(
dataType
==
ZCL_BOOLEAN_ATTRIBUTE_TYPE
){
if
(
len
==
1
){
...
...
@@ -589,6 +590,8 @@ int kk_report_global_onoff_attribute(EmberEUI64 eui64,uint8_t EP,EmberAfClusterI
int
kk_report_windowCovering_mode_attribute
(
EmberEUI64
eui64
,
uint8_t
EP
,
EmberAfClusterId
clusterId
,
EmberAfAttributeId
attributeId
,
uint8_t
dataType
,
uint8_t
len
,
uint8_t
*
data
)
{
emberAfAppPrintln
(
"kk_report_windowCovering_mode_attribute"
);
uint8_t
mode
;
if
(
dataType
==
ZCL_BITMAP8_ATTRIBUTE_TYPE
){
if
(
len
==
1
){
...
...
@@ -609,6 +612,8 @@ int kk_report_windowCovering_mode_attribute(EmberEUI64 eui64,uint8_t EP,EmberAfC
}
int
kk_report_windowCovering_position_attribute
(
EmberEUI64
eui64
,
uint8_t
EP
,
EmberAfClusterId
clusterId
,
EmberAfAttributeId
attributeId
,
uint8_t
dataType
,
uint8_t
len
,
uint8_t
*
data
)
{
emberAfAppPrintln
(
"kk_report_windowCovering_mode_attribute"
);
uint8_t
position
;
if
(
dataType
==
ZCL_INT8U_ATTRIBUTE_TYPE
){
if
(
len
==
1
){
...
...
@@ -640,6 +645,7 @@ void kk_dispatch_report_attribute(EmberEUI64 eui64,
for
(
j
=
0
;
j
<
device_item
[
i
].
num
;
j
++
){
if
(
report_item
[
j
].
clusterId
==
clusterId
&&
report_item
[
j
].
attributeId
==
attributeId
){
emberAfAppPrintln
(
"i=%d,j=%d"
,
i
,
j
);
result
=
report_item
[
j
].
zigbee_report
(
eui64
,
EP
,
clusterId
,
attributeId
,
dataType
,
len
,
data
);
if
(
!
result
){
emberAfAppPrintln
(
"result=%d"
,
result
);
...
...
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