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
c8a0e75a
Commit
c8a0e75a
authored
Sep 17, 2020
by
陈伟灿
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'yjq' into 'master'
Yjq See merge request chenweican/k-sdk!8
parents
a84179ef
c995f942
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
2 deletions
+71
-2
platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_config_table/device_3073.json
...uilder/Z3GatewayHost/ZB/dev_config_table/device_3073.json
+70
-0
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
+1
-2
No files found.
platform/zigbee/app/builder/Z3GatewayHost/ZB/dev_config_table/device_3073.json
0 → 100644
View file @
c8a0e75a
{
"productCode"
:
"3073"
,
"config"
:[
{
"identity"
:
"PowerSwitch_1"
,
"endpoint"
:
1
,
"cluster"
:
"0x0006"
,
"attribute"
:
"0x0000"
,
"reportFunc"
:
"kk_tsl_report_global_onoff"
,
"controlFunc"
:
"zclOnOff"
},{
"identity"
:
"RGBColor.red"
,
"endpoint"
:
1
,
"cluster"
:
""
,
"attribute"
:
""
,
"reportFunc"
:
""
,
"controlFunc"
:
"xxx"
},{
"identity"
:
"RGBColor.green"
,
"endpoint"
:
1
,
"cluster"
:
""
,
"attribute"
:
""
,
"reportFunc"
:
""
,
"controlFunc"
:
"xxx"
},{
"identity"
:
"RGBColor.blue"
,
"endpoint"
:
1
,
"cluster"
:
""
,
"attribute"
:
""
,
"reportFunc"
:
""
,
"controlFunc"
:
"xxx"
},{
"identity"
:
"CurrentHue"
,
"endpoint"
:
1
,
"cluster"
:
"0x0300"
,
"attribute"
:
"0x0000"
,
"reportFunc"
:
"kk_tsl_report_global_onoff"
,
"controlFunc"
:
""
},{
"identity"
:
"CurrentSaturation"
,
"endpoint"
:
1
,
"cluster"
:
"0x0300"
,
"attribute"
:
"0x0001"
,
"reportFunc"
:
"kk_tsl_report_global_onoff"
,
"controlFunc"
:
""
},{
"identity"
:
"Brightness"
,
"endpoint"
:
1
,
"cluster"
:
"0x0008"
,
"attribute"
:
"0x0000"
,
"reportFunc"
:
"kk_tsl_report_colorControl_Brightness"
,
"controlFunc"
:
"kk_tsl_set_colorlight_Brightness"
},{
"identity"
:
"WhiteBrightness"
,
"endpoint"
:
2
,
"cluster"
:
"0x0008"
,
"attribute"
:
"0x0000"
,
"reportFunc"
:
"kk_tsl_report_colorControl_WhiteBrightness"
,
"controlFunc"
:
"kk_tsl_set_colorlight_WhiteBrightness"
},{
"identity"
:
"Mode"
,
"endpoint"
:
1
,
"cluster"
:
"0xFCC0"
,
"attribute"
:
"0x0000"
,
"reportFunc"
:
"kk_tsl_report_colorControl_mode"
,
"controlFunc"
:
"kk_tsl_set_colorlight_mode"
}
]
}
\ No newline at end of file
platform/zigbee/app/builder/Z3GatewayHost/kk_test.c
View file @
c8a0e75a
...
...
@@ -208,11 +208,10 @@ void emberAfMainTickCallback(void)
static
unsigned
int
last_time
;
unsigned
int
time
=
halCommonGetInt32uMillisecondTick
();
if
((
time
-
last_time
)
>=
10
00
){
if
((
time
-
last_time
)
>=
5
00
){
last_time
=
time
;
kk_productCode_tick
();
//printf("kk_productCode_tick!\n");
}
}
...
...
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